Merge pull request #1467 from matrix-org/luke/fix-autocomplete-hover-bug
Fix bug that inserted emoji when typing
This commit is contained in:
commit
91b888aa2d
1 changed files with 2 additions and 2 deletions
|
@ -233,7 +233,7 @@ export default class Autocomplete extends React.Component {
|
||||||
const componentPosition = position;
|
const componentPosition = position;
|
||||||
position++;
|
position++;
|
||||||
|
|
||||||
const onMouseOver = () => this.setSelection(componentPosition);
|
const onMouseMove = () => this.setSelection(componentPosition);
|
||||||
const onClick = () => {
|
const onClick = () => {
|
||||||
this.setSelection(componentPosition);
|
this.setSelection(componentPosition);
|
||||||
this.onCompletionClicked();
|
this.onCompletionClicked();
|
||||||
|
@ -243,7 +243,7 @@ export default class Autocomplete extends React.Component {
|
||||||
key: i,
|
key: i,
|
||||||
ref: `completion${position - 1}`,
|
ref: `completion${position - 1}`,
|
||||||
className,
|
className,
|
||||||
onMouseOver,
|
onMouseMove,
|
||||||
onClick,
|
onClick,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue