fix(forms): precise type assertion for onInput event handler (#293)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Selemondev
2023-06-15 13:14:32 +03:00
committed by Benjamin Canac
parent 4023fbec29
commit 457b7a9fb7
3 changed files with 3 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ export default defineComponent({
const ui = computed<Partial<typeof appConfig.ui.select>>(() => defu({}, props.ui, appConfig.ui.select))
const onInput = (event: InputEvent) => {
emit('update:modelValue', (event.target as any).value)
emit('update:modelValue', (event.target as HTMLInputElement).value)
}
const guessOptionValue = (option: any) => {