mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Merge pull request #1281 from matrix-org/luke/fix-autocomplete-cancel
When `hide`ing autocomplete, also remove completion state
This commit is contained in:
commit
b82fd02eb7
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ export default class Autocomplete extends React.Component {
|
|||
}
|
||||
|
||||
hide() {
|
||||
this.setState({hide: true, selectionOffset: 0});
|
||||
this.setState({hide: true, selectionOffset: 0, completions: [], completionList: []});
|
||||
}
|
||||
|
||||
forceComplete() {
|
||||
|
|
Loading…
Reference in a new issue