We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c2f27 commit 5de4a19Copy full SHA for 5de4a19
components/SearchBar/SearchBar.jsx
@@ -102,7 +102,7 @@ class SearchBar extends Component {
102
this.search()
103
})
104
} else if (eventKey === 39) { // right arrow key is pressed
105
- const suggestion = this.state.suggestions.length > 0 ? this.state.suggestions[0] : null
+ const suggestion = this.state.suggestions[0]
106
if (suggestion) {
107
this.refs.searchValue.value = suggestion
108
// trigger the change event handler
0 commit comments