Skip to content

Commit

Permalink
fix: 修复输入事件以正确传递HTMLInputElement的值
Browse files Browse the repository at this point in the history
  • Loading branch information
Coooolfan committed Nov 1, 2024
1 parent 8ccbea1 commit 7a6348f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LabelAndInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
v-if="!loading"
:id="id"
:value="modelValue"
@input="$emit('update:modelValue', $event.target)"
@input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)"
class="h-10 w-full"
:placeholder="placeholder"
/>
Expand Down

0 comments on commit 7a6348f

Please sign in to comment.