Skip to content

Commit a3f8b17

Browse files
fix(selects): open menu when items is mutated not just replaced (#22067)
resolves #22066 Co-authored-by: Kael <[email protected]>
1 parent d364f0e commit a3f8b17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export const VAutocomplete = genericComponent<new <
399399
}
400400
})
401401

402-
watch(() => props.items, (newVal, oldVal) => {
402+
watch(items, (newVal, oldVal) => {
403403
if (menu.value) return
404404

405405
if (isFocused.value && !oldVal.length && newVal.length) {

packages/vuetify/src/components/VCombobox/VCombobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export const VCombobox = genericComponent<new <
470470
isPristine.value = !search.value
471471
}, { immediate: true })
472472

473-
watch(() => props.items, (newVal, oldVal) => {
473+
watch(items, (newVal, oldVal) => {
474474
if (menu.value) return
475475

476476
if (isFocused.value && !oldVal.length && newVal.length) {

packages/vuetify/src/components/VSelect/VSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export const VSelect = genericComponent<new <
358358
}
359359
})
360360

361-
watch(() => props.items, (newVal, oldVal) => {
361+
watch(items, (newVal, oldVal) => {
362362
if (menu.value) return
363363

364364
if (isFocused.value && props.hideNoData && !oldVal.length && newVal.length) {

0 commit comments

Comments
 (0)