Skip to content

Commit

Permalink
fix(VAutocomplete/VComobobox): remove tab key listener
Browse files Browse the repository at this point in the history
fixes #19840
  • Loading branch information
yuwu9145 committed May 21, 2024
1 parent 88badc6 commit 6252b24
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 && ['Enter'].includes(e.key)) {
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 && ['Enter'].includes(e.key)) {
select(filteredItems.value[0])
}

Expand Down

0 comments on commit 6252b24

Please sign in to comment.