mirror of https://github.com/vector-im/riot-web
When `hide`ing autocomplete, also remove completion state
parent
ca2273519d
commit
cb8a66b5a1
|
@ -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 New Issue