File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
packages/web/src/app/[domain]/components/searchBar Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Changed
11+ - Disable page scroll when using arrow keys on search suggestions box. [ #493 ] ( https://github.com/sourcebot-dev/sourcebot/pull/493 )
12+
1013## [ 4.6.6] - 2025-09-04
1114
1215### Added
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments