Merge pull request #1281 from matrix-org/luke/fix-autocomplete-cancel

When `hide`ing autocomplete, also remove completion state
pull/21833/head
Luke Barnard 2017-08-08 17:46:48 +01:00 committed by GitHub
commit b82fd02eb7
1 changed files with 1 additions and 1 deletions

View File

@ -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() {