Skip to content

Commit

Permalink
Merge pull request #170 from goldoraf/take-2
Browse files Browse the repository at this point in the history
ESC should hide the suggestion list in the search bar
  • Loading branch information
goldoraf authored Jan 31, 2018
2 parents 3041bc1 + 6ee9cb8 commit 112ce0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class SearchBar extends Component {
const { input, query, searching, focused, suggestionsBySource, sourceURLs } = this.state
const { t } = this.props

const isInitialSearch = input !== '' && query === null && searching
const isInitialSearch = input !== '' && query === null
const hasSuggestions = suggestionsBySource.reduce((totalSuggestions, suggestionSection) => (totalSuggestions + suggestionSection.suggestions.length), 0) > 0

const inputProps = {
Expand Down

0 comments on commit 112ce0a

Please sign in to comment.