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 a74d070 commit d6dcce6Copy full SHA for d6dcce6
packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx
@@ -334,13 +334,15 @@ const SearchSuggestionsBox = forwardRef(({
334
}
335
336
if (e.key === 'ArrowUp') {
337
+ e.preventDefault();
338
e.stopPropagation();
339
setHighlightedSuggestionIndex((curIndex) => {
340
return curIndex <= 0 ? suggestions.length - 1 : curIndex - 1;
341
});
342
343
344
if (e.key === 'ArrowDown') {
345
346
347
348
return curIndex >= suggestions.length - 1 ? 0 : curIndex + 1;
0 commit comments