Skip to content

Commit

Permalink
fix(VSelect): auto scroll to selected item when using hotkeys (#19593)
Browse files Browse the repository at this point in the history
fixes #19574
  • Loading branch information
yuwu9145 authored Apr 11, 2024
1 parent 4a033e8 commit 2bb1c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VSelect/VSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export const VSelect = genericComponent<new <
}
}

watch(menu, () => {
watch([menu, model], () => {
if (!props.hideSelected && menu.value && model.value.length) {
const index = displayItems.value.findIndex(
item => model.value.some(s => props.valueComparator(s.value, item.value))
Expand Down

0 comments on commit 2bb1c07

Please sign in to comment.