From cb8a66b5a119d46e93265b0f73031e10d7559fa0 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 8 Aug 2017 17:25:11 +0100 Subject: [PATCH] When `hide`ing autocomplete, also remove completion state --- src/components/views/rooms/Autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/Autocomplete.js b/src/components/views/rooms/Autocomplete.js index 1ea2eada7c..cdd57801a5 100644 --- a/src/components/views/rooms/Autocomplete.js +++ b/src/components/views/rooms/Autocomplete.js @@ -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() {