Skip to content

Commit 1d090df

Browse files
Fix a bug with v-model and dynamic type on input.
1 parent 61b76c1 commit 1d090df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fields/fieldInput.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
.wrapper
33
input.form-control(
44
:type="schema.inputType",
5-
v-model="value",
5+
:value="value",
6+
@input="value = $event.target.value",
67
number="schema.inputType == 'number'"
78
:disabled="disabled",
8-
99
:accept="schema.accept",
1010
:alt="schema.alt",
1111
:autocomplete="schema.autocomplete",

0 commit comments

Comments
 (0)