diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-03 15:13:25 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-03 15:16:39 -0500 |
commit | f103e4c815234fd5f451fe66e29bc17f0b20cadb (patch) | |
tree | 77c699442b6f5e768ebfd5805d08de91af0913a4 /web/react/dispatcher | |
parent | b69cc7a94a9fb69dda259b2286eeefc3d6a2ec95 (diff) | |
download | chat-f103e4c815234fd5f451fe66e29bc17f0b20cadb.tar.gz chat-f103e4c815234fd5f451fe66e29bc17f0b20cadb.tar.bz2 chat-f103e4c815234fd5f451fe66e29bc17f0b20cadb.zip |
Changed SuggestionBox to clear its suggestions on losing focus
Diffstat (limited to 'web/react/dispatcher')
-rw-r--r-- | web/react/dispatcher/event_helpers.jsx | 7 |
1 files changed, 7 insertions, 0 deletions
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 + }); +} |