diff options
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index fb55b0588..e9f7c3699 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -64,7 +64,10 @@ export default class SuggestionBox extends React.Component { // Delay this slightly so that we don't clear the suggestions before we run click handlers on SuggestionList GlobalActions.emitClearSuggestions(this.suggestionId); }, 100); - this.props.onBlur(); + + if (this.props.onBlur) { + this.props.onBlur(); + } } handleChange(e) { |