diff --git a/client/src/components/search/searchBar/SearchBar.js b/client/src/components/search/searchBar/SearchBar.js index 029529e10c..f83e7b650b 100644 --- a/client/src/components/search/searchBar/SearchBar.js +++ b/client/src/components/search/searchBar/SearchBar.js @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createSelector } from 'reselect'; import { SearchBox } from 'react-instantsearch-dom'; -import { HotKeys, configure } from 'react-hotkeys'; +import { HotKeys, ObserveKeys } from 'react-hotkeys'; import { isEqual } from 'lodash'; import { @@ -19,9 +19,6 @@ import SearchHits from './SearchHits'; import './searchbar-base.css'; import './searchbar.css'; -// Configure react-hotkeys to work with the searchbar -configure({ ignoreTags: ['select', 'textarea'] }); - const propTypes = { innerRef: PropTypes.object, isDropdownEnabled: PropTypes.bool, @@ -187,14 +184,16 @@ class SearchBar extends Component { - + + + {isDropdownEnabled && isSearchFocused && (