When `hide`ing autocomplete, also remove completion state

pull/21833/head
Luke Barnard 2017-08-08 17:25:11 +01:00
parent ca2273519d
commit cb8a66b5a1
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() {