Skip to content

Commit d6dcce6

Browse files
feat
1 parent a74d070 commit d6dcce6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,15 @@ const SearchSuggestionsBox = forwardRef(({
334334
}
335335

336336
if (e.key === 'ArrowUp') {
337+
e.preventDefault();
337338
e.stopPropagation();
338339
setHighlightedSuggestionIndex((curIndex) => {
339340
return curIndex <= 0 ? suggestions.length - 1 : curIndex - 1;
340341
});
341342
}
342343

343344
if (e.key === 'ArrowDown') {
345+
e.preventDefault();
344346
e.stopPropagation();
345347
setHighlightedSuggestionIndex((curIndex) => {
346348
return curIndex >= suggestions.length - 1 ? 0 : curIndex + 1;

0 commit comments

Comments
 (0)