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 0a70ded commit 05ef43bCopy full SHA for 05ef43b
packages/core/src/Combobox/ComboboxRoot.vue
@@ -132,16 +132,15 @@ async function onOpenChange(val: boolean) {
132
await nextTick()
133
primitiveElement.value?.highlightSelected()
134
isUserInputted.value = true
135
+ inputElement.value?.focus()
136
}
137
else {
138
isUserInputted.value = false
139
+ setTimeout(() => {
140
+ if (!val && props.resetSearchTermOnBlur)
141
+ resetSearchTerm.trigger()
142
+ }, 1)
143
-
- inputElement.value?.focus()
- setTimeout(() => {
- if (!val && props.resetSearchTermOnBlur)
- resetSearchTerm.trigger()
144
- }, 1)
145
146
147
const resetSearchTerm = createEventHook()
0 commit comments