Skip to content

Commit

Permalink
fix(VAutocomplete/VCombobox): remove tab key listener (#19846)
Browse files Browse the repository at this point in the history
fixes #19840
  • Loading branch information
yuwu9145 authored May 21, 2024
1 parent 4b387b5 commit 5703a6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const VAutocomplete = genericComponent<new <
menu.value = false
}

if (highlightFirst.value && ['Enter', 'Tab'].includes(e.key)) {
if (highlightFirst.value && e.key === 'Enter') {
select(displayItems.value[0])
}

Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VCombobox/VCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ export const VCombobox = genericComponent<new <
menu.value = false
}

if (['Enter', 'Escape', 'Tab'].includes(e.key)) {
if (highlightFirst.value && ['Enter', 'Tab'].includes(e.key)) {
if (['Enter', 'Escape'].includes(e.key)) {
if (highlightFirst.value && e.key === 'Enter') {
select(filteredItems.value[0])
}

Expand Down

0 comments on commit 5703a6c

Please sign in to comment.