Skip to content

Commit 16a1531

Browse files
committed
Properly handle arrow up key in search suggestion navigation
1 parent 8bb74f8 commit 16a1531

File tree

1 file changed

+1
-1
lines changed
  • source/components/GlobalNavigation/components/Search

1 file changed

+1
-1
lines changed

source/components/GlobalNavigation/components/Search/Search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Search extends React.Component {
8787

8888
break;
8989
// up arrow
90-
case 30:
90+
case 38:
9191
if (suggestions.length && selectedSuggestionIndex > -1) {
9292
this.setState(({ selectedSuggestionIndex: selectedSuggestionIndex - 1 }));
9393
}

0 commit comments

Comments
 (0)