From d6dcce61d2e8ec6b2c9f6584dec5bdb655af72fc Mon Sep 17 00:00:00 2001 From: bkellam Date: Sat, 6 Sep 2025 12:12:47 -0400 Subject: [PATCH 1/2] feat --- .../app/[domain]/components/searchBar/searchSuggestionsBox.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx b/packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx index 6b208c0e4..eb1676408 100644 --- a/packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx +++ b/packages/web/src/app/[domain]/components/searchBar/searchSuggestionsBox.tsx @@ -334,6 +334,7 @@ const SearchSuggestionsBox = forwardRef(({ } if (e.key === 'ArrowUp') { + e.preventDefault(); e.stopPropagation(); setHighlightedSuggestionIndex((curIndex) => { return curIndex <= 0 ? suggestions.length - 1 : curIndex - 1; @@ -341,6 +342,7 @@ const SearchSuggestionsBox = forwardRef(({ } if (e.key === 'ArrowDown') { + e.preventDefault(); e.stopPropagation(); setHighlightedSuggestionIndex((curIndex) => { return curIndex >= suggestions.length - 1 ? 0 : curIndex + 1; From eb7be8f862362745cc693584c2344e33c728e6c0 Mon Sep 17 00:00:00 2001 From: bkellam Date: Sat, 6 Sep 2025 12:16:21 -0400 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61528abf3..57300ae29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Disable page scroll when using arrow keys on search suggestions box. [#493](https://github.com/sourcebot-dev/sourcebot/pull/493) + ## [4.6.6] - 2025-09-04 ### Added