Skip to content

Commit

Permalink
fix(VSelect): auto scroll to selected item when using hotkeys
Browse files Browse the repository at this point in the history
fixes #19574
  • Loading branch information
yuwu9145 committed Apr 11, 2024
1 parent 4a033e8 commit d0c0234
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 d0c0234

Please sign in to comment.