Skip to content

Commit

Permalink
fix(VSelect): auto scroll to the last selected item when open menu
Browse files Browse the repository at this point in the history
fixes #19635
  • Loading branch information
yuwu9145 committed Apr 18, 2024
1 parent afee262 commit d65d586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VSelect/VSelect.tsx
Expand Up @@ -304,7 +304,7 @@ export const VSelect = genericComponent<new <

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

0 comments on commit d65d586

Please sign in to comment.