We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae5bcf commit 40d82dcCopy full SHA for 40d82dc
packages/core/src/Combobox/ComboboxInput.vue
@@ -96,10 +96,10 @@ watch(rootContext.modelValue, async () => {
96
resetSearchTerm()
97
}, { immediate: true, deep: true })
98
99
-watch(rootContext.filterState, () => {
+watch(rootContext.filterState, (_newValue, oldValue) => {
100
// we exclude virtualized list as the state would be constantly updated,
101
- // and only change highlight when there is no highlighted item
102
- if (!rootContext.isVirtual.value && !rootContext.highlightedElement.value) {
+ // and only change highlight when previously there were no items displayed
+ if (!rootContext.isVirtual.value && (oldValue.count === 0)) {
103
listboxContext.highlightFirstItem()
104
}
105
})
0 commit comments