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/dispatcher/event_helpers.jsx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/react/dispatcher/event_helpers.jsx') diff --git a/web/react/dispatcher/event_helpers.jsx b/web/react/dispatcher/event_helpers.jsx index f792c610f..3deddd754 100644 --- a/web/react/dispatcher/event_helpers.jsx +++ b/web/react/dispatcher/event_helpers.jsx @@ -141,3 +141,10 @@ export function emitCompleteWordSuggestion(suggestionId, term = '') { term }); } + +export function emitClearSuggestions(suggestionId) { + AppDispatcher.handleViewAction({ + type: Constants.ActionTypes.SUGGESTION_CLEAR_SUGGESTIONS, + id: suggestionId + }); +} -- cgit v1.2.3-1-g7c22