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

When `hide`ing autocomplete, also remove completion state
This commit is contained in:
Luke Barnard 2017-08-08 17:46:48 +01:00 committed by GitHub
commit b82fd02eb7

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