mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-17 21:48:07 +01:00
fix(forms)!: normalize input emits (#1560)
This commit is contained in:
@@ -507,11 +507,12 @@ export default defineComponent({
|
||||
|
||||
function onUpdate (event: any) {
|
||||
emit('update:modelValue', event)
|
||||
emit('change', event)
|
||||
emitFormChange()
|
||||
}
|
||||
|
||||
function onChange (event: any) {
|
||||
emit('change', (event.target as HTMLInputElement).value)
|
||||
emitFormChange()
|
||||
|
||||
query.value = event.target.value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user