Skip to content

Commit efbfd37

Browse files
committed
Update form-text.js
1 parent 9e8e643 commit efbfd37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mixins/form-text.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
const { value } = this
7676
return {
7777
localValue: toString(value),
78-
vModelValue: this.modifyValue(value)
78+
vModelValue: value
7979
}
8080
},
8181
computed: {
@@ -111,7 +111,7 @@ export default {
111111
this.clearDebounce()
112112
// Update the local values
113113
this.localValue = stringifyValue
114-
this.vModelValue = this.modifyValue(newValue)
114+
this.vModelValue = newValue
115115
}
116116
}
117117
},
@@ -136,6 +136,7 @@ export default {
136136
return value
137137
},
138138
modifyValue(value) {
139+
value = toString(value)
139140
// Emulate `.trim` modifier behaviour
140141
if (this.trim) {
141142
value = value.trim()

0 commit comments

Comments
 (0)