Skip to content

Commit

Permalink
fix(VCombobox): don't return focus to input on space keydown
Browse files Browse the repository at this point in the history
fixes #20850
  • Loading branch information
KaelWD committed Jan 15, 2025
1 parent 933bf24 commit d609024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export const VAutocomplete = genericComponent<new <
menu.value = !menu.value
}
function onListKeydown (e: KeyboardEvent) {
if (checkPrintable(e)) {
if (e.key !== ' ' && checkPrintable(e)) {
vTextFieldRef.value?.focus()
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VCombobox/VCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const VCombobox = genericComponent<new <
menu.value = !menu.value
}
function onListKeydown (e: KeyboardEvent) {
if (checkPrintable(e)) {
if (e.key !== ' ' && checkPrintable(e)) {
vTextFieldRef.value?.focus()
}
}
Expand Down

0 comments on commit d609024

Please sign in to comment.