Skip to content

Commit 6fe4d0c

Browse files
authored
fix: remove space handler as its no longer needed (supabase#42620)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Bug fix: unwanted space handler causing issues when typing multiple words. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated keyboard navigation behavior in the FilterBar. The Space key no longer triggers focus movement when used in certain input contexts, allowing for more intuitive default keyboard behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 308c9e2 commit 6fe4d0c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/ui-patterns/src/FilterBar/useKeyboardNavigation.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@ export function useKeyboardNavigation({
255255
(e: KeyboardEvent<HTMLInputElement>) => {
256256
if (e.key === 'Backspace') {
257257
handleBackspace(e)
258-
} else if (e.key === ' ' && activeInput?.type === 'value') {
259-
e.preventDefault()
260-
setActiveInput({ type: 'group', path: [] })
261258
} else if (e.key === 'ArrowLeft') {
262259
handleArrowLeft(e)
263260
} else if (e.key === 'ArrowRight') {

0 commit comments

Comments
 (0)