Skip to content

Commit

Permalink
fix(SelectMenu): change emit
Browse files Browse the repository at this point in the history
  • Loading branch information
romhml committed Mar 27, 2024
1 parent 6a2bd4c commit 73cc429
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/runtime/components/forms/SelectMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
autofocus
autocomplete="off"
:class="uiMenu.input"
@change="onChange"
@change="onQueryChange"
/>
<component
:is="searchable ? 'HComboboxOption' : 'HListboxOption'"
Expand Down Expand Up @@ -507,12 +507,11 @@ export default defineComponent({
function onUpdate (event: any) {
emit('update:modelValue', event)
}
function onChange (event: any) {
emit('change', (event.target as HTMLInputElement).value)
emitFormChange()
}
function onQueryChange (event: any) {
query.value = event.target.value
}
Expand Down Expand Up @@ -547,7 +546,7 @@ export default defineComponent({
// eslint-disable-next-line vue/no-dupe-keys
query,
onUpdate,
onChange
onQueryChange
}
}
})
Expand Down

0 comments on commit 73cc429

Please sign in to comment.