From f103e4c815234fd5f451fe66e29bc17f0b20cadb Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 3 Dec 2015 15:13:25 -0500 Subject: Changed SuggestionBox to clear its suggestions on losing focus --- web/react/stores/suggestion_store.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/react/stores') 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); -- cgit v1.2.3-1-g7c22