diff --git a/client/app/scripts/components/search.js b/client/app/scripts/components/search.js index 8b10b71f6..279aedff0 100644 --- a/client/app/scripts/components/search.js +++ b/client/app/scripts/components/search.js @@ -42,6 +42,7 @@ class Search extends React.Component { constructor(props, context) { super(props, context); + this.handleBlur = this.handleBlur.bind(this); this.handleChange = this.handleChange.bind(this); this.handleFocus = this.handleFocus.bind(this); this.doSearch = _.debounce(this.doSearch.bind(this), 200); @@ -50,6 +51,10 @@ class Search extends React.Component { }; } + handleBlur() { + this.props.blurSearch(); + } + handleChange(ev) { const inputValue = ev.target.value; let value = inputValue; @@ -119,7 +124,7 @@ class Search extends React.Component { .map(query => )} {!showPinnedSearches &&