Skip to content

Commit 98106e4

Browse files
committed
adding v-model to input
1 parent 5a2a791 commit 98106e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fields/fieldInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export default {
2626
...this.to.classes
2727
},
2828
domProps: {
29-
value: self.value
29+
value: this.model[ this.field.key ]
3030
},
3131
on: {
3232
input(event){
33-
self.value = event.target.value;
33+
self.model[ self.field.key ] = event.target.value;
3434
self.$emit('input', event.target.value);
3535
},
3636
blur: this.onBlur,

0 commit comments

Comments
 (0)