From 82313e862cbf21ae631156af4cd057f1383db634 Mon Sep 17 00:00:00 2001 From: Ezra Ashenafi Date: Tue, 3 Sep 2024 11:49:24 +0300 Subject: [PATCH] fix(Input): avoid binding value when type is `file` (#2047) --- src/runtime/components/forms/Input.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/components/forms/Input.vue b/src/runtime/components/forms/Input.vue index 1cb5953046..f91260049f 100644 --- a/src/runtime/components/forms/Input.vue +++ b/src/runtime/components/forms/Input.vue @@ -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"