fix(Input): avoid binding value when type is file (#2047)

This commit is contained in:
Ezra Ashenafi
2024-09-03 11:49:24 +03:00
committed by GitHub
parent 0527f8db58
commit 82313e862c

View File

@@ -4,13 +4,12 @@
:id="inputId"
ref="input"
:name="name"
:value="modelValue"
:type="type"
:required="required"
:placeholder="placeholder"
:disabled="disabled"
:class="inputClass"
v-bind="attrs"
v-bind="type === 'file' ? attrs : { ...attrs, value: modelValue }"
@input="onInput"
@blur="onBlur"
@change="onChange"