Skip to content

Commit

Permalink
Merge pull request #4351 from rdjuric/fixArrowNavigationSearch
Browse files Browse the repository at this point in the history
Fix white screen when trying to navigate empty search results
  • Loading branch information
MariaHCD authored Aug 2, 2021
2 parents 588700e + 460e4c4 commit 1639a73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/OptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ class OptionsSelector extends Component {
}))]
), []);

if (allOptions.length === 0) {
return;
}

if (this.props.disableArrowKeysActions && e.nativeEvent.key.startsWith('Arrow')) {
return;
}
Expand Down

0 comments on commit 1639a73

Please sign in to comment.