Skip to content

Commit

Permalink
fix(Input): change event for file input
Browse files Browse the repository at this point in the history
  • Loading branch information
romhml committed Mar 27, 2024
1 parent 3d5ffe7 commit 6a2bd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default defineComponent({
}
const onChange = (event: Event) => {
const value = (event.target as HTMLInputElement).value
const value = props.type === 'file' ? (event.target as HTMLInputElement).files : (event.target as HTMLInputElement).value
emit('change', value)
if (modelModifiers.value.lazy) {
Expand Down

0 comments on commit 6a2bd4c

Please sign in to comment.