mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
When hide
ing autocomplete, also remove completion state
This commit is contained in:
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
Block a user