diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-12-09 18:43:50 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-12-09 15:43:50 -0800 |
commit | c2be6497ebc3dd586f4fbd61f76ac6cef23a9acf (patch) | |
tree | d1f20596f4a7d632ab69ece0c419229737c2d185 /webapp/components/suggestion/search_suggestion_list.jsx | |
parent | 65699c7c51c7fed17979d7c47fff3e2231d395bd (diff) | |
download | chat-c2be6497ebc3dd586f4fbd61f76ac6cef23a9acf.tar.gz chat-c2be6497ebc3dd586f4fbd61f76ac6cef23a9acf.tar.bz2 chat-c2be6497ebc3dd586f4fbd61f76ac6cef23a9acf.zip |
Changed SuggestionBox to clear suggestions shortly after losing focus (#4721)
Diffstat (limited to 'webapp/components/suggestion/search_suggestion_list.jsx')
-rw-r--r-- | webapp/components/suggestion/search_suggestion_list.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
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 -}; |