diff options
author | Asaad Mahmood <asaadmahmood@users.noreply.github.com> | 2017-01-06 19:04:11 +0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-06 09:04:11 -0500 |
commit | 28d07758fc77591a08ebc4f8a0c5696eda8935d5 (patch) | |
tree | 59edfb1ee48fb3f177a7e96caa4ce85f780c52e2 /webapp/components/search_bar.jsx | |
parent | 0c0635d766f61eb25db52e4e11706932185e416d (diff) | |
download | chat-28d07758fc77591a08ebc4f8a0c5696eda8935d5.tar.gz chat-28d07758fc77591a08ebc4f8a0c5696eda8935d5.tar.bz2 chat-28d07758fc77591a08ebc4f8a0c5696eda8935d5.zip |
Bug fixes for search and direct messages (#4986)
* PLT-5145 - Fixing search popover on mobile
* PLT-5093 - Fixing direct messages list height
Diffstat (limited to 'webapp/components/search_bar.jsx')
-rw-r--r-- | webapp/components/search_bar.jsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/webapp/components/search_bar.jsx b/webapp/components/search_bar.jsx index bea722243..a6fd379ac 100644 --- a/webapp/components/search_bar.jsx +++ b/webapp/components/search_bar.jsx @@ -104,6 +104,7 @@ export default class SearchBar extends React.Component { SearchStore.storeSearchTerm(term); SearchStore.emitSearchTermChange(false); this.setState({searchTerm: term}); + this.refs.searchOverlay.hide(); } handleUserBlur() { @@ -179,11 +180,6 @@ export default class SearchBar extends React.Component { isSearching = <span className={'fa fa-refresh fa-refresh-animate icon--refresh icon--rotate'}/>; } - let helpClass = 'search-help-popover'; - if (!this.state.searchTerm && this.state.focused) { - helpClass += ' visible'; - } - const recentMentionsTooltip = ( <Tooltip id='recentMentionsTooltip'> <FormattedMessage @@ -197,7 +193,7 @@ export default class SearchBar extends React.Component { <Popover id='searchbar-help-popup' placement='bottom' - className={helpClass} + className='search-help-popover' > <FormattedHTMLMessage id='search_bar.usage' @@ -290,12 +286,12 @@ export default class SearchBar extends React.Component { > <span className='fa fa-search sidebar__search-icon'/> <OverlayTrigger + ref='searchOverlay' delayShow={Constants.OVERLAY_TIME_DELAY_SMALL} placement='bottom' overlay={searchPopover} - trigger='focus' + trigger='click' rootClose={true} - className={helpClass} > <SuggestionBox ref='search' |