diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-12-04 08:19:55 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-12-04 08:19:55 -0500 |
commit | 84f2afe52d76e5d8ea01e9bb882275db2539751a (patch) | |
tree | 164510da11360fdae29843acb7b9d595fbe53bf6 /web/react/stores | |
parent | bd90802c2ca53378ed5d0190f6b0ebf3948daf5f (diff) | |
parent | f103e4c815234fd5f451fe66e29bc17f0b20cadb (diff) | |
download | chat-84f2afe52d76e5d8ea01e9bb882275db2539751a.tar.gz chat-84f2afe52d76e5d8ea01e9bb882275db2539751a.tar.bz2 chat-84f2afe52d76e5d8ea01e9bb882275db2539751a.zip |
Merge pull request #1605 from hmhealey/plt1370
PLT-1370 Changed SuggestionBox to clear its suggestions on losing focus
Diffstat (limited to 'web/react/stores')
-rw-r--r-- | web/react/stores/suggestion_store.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/react/stores/suggestion_store.jsx b/web/react/stores/suggestion_store.jsx index 182f5810f..2250ec234 100644 --- a/web/react/stores/suggestion_store.jsx +++ b/web/react/stores/suggestion_store.jsx @@ -244,6 +244,11 @@ class SuggestionStore extends EventEmitter { this.emitSuggestionsChanged(id); } break; + case ActionTypes.SUGGESTION_CLEAR_SUGGESTIONS: + this.clearSuggestions(id); + this.clearSelection(id); + this.emitSuggestionsChanged(id); + break; case ActionTypes.SUGGESTION_SELECT_NEXT: this.selectNext(id); this.emitSuggestionsChanged(id); |