From c2be6497ebc3dd586f4fbd61f76ac6cef23a9acf Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 9 Dec 2016 18:43:50 -0500 Subject: Changed SuggestionBox to clear suggestions shortly after losing focus (#4721) --- webapp/components/suggestion/search_suggestion_list.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webapp/components/suggestion/search_suggestion_list.jsx') diff --git a/webapp/components/suggestion/search_suggestion_list.jsx b/webapp/components/suggestion/search_suggestion_list.jsx index 628f93af0..99262109a 100644 --- a/webapp/components/suggestion/search_suggestion_list.jsx +++ b/webapp/components/suggestion/search_suggestion_list.jsx @@ -12,6 +12,10 @@ import {FormattedMessage} from 'react-intl'; import {Popover} from 'react-bootstrap'; export default class SearchSuggestionList extends SuggestionList { + static propTypes = { + ...SuggestionList.propTypes + }; + getContent() { return $(ReactDOM.findDOMNode(this.refs.popover)).find('.popover-content'); } @@ -92,7 +96,3 @@ export default class SearchSuggestionList extends SuggestionList { ); } } - -SearchSuggestionList.propTypes = { - ...SuggestionList.propTypes -}; -- cgit v1.2.3-1-g7c22