File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,12 @@ export default {
106
106
watch : {
107
107
value ( newValue ) {
108
108
const stringifyValue = toString ( newValue )
109
- const modifiedValue = this . modifyValue ( newValue )
110
- if ( stringifyValue !== this . localValue && modifiedValue !== this . vModelValue ) {
109
+ if ( stringifyValue !== this . localValue && newValue !== this . vModelValue ) {
111
110
// Clear any pending debounce timeout, as we are overwriting the user input
112
111
this . clearDebounce ( )
113
112
// Update the local values
114
113
this . localValue = stringifyValue
115
- this . vModelValue = modifiedValue
114
+ this . vModelValue = this . modifyValue ( newValue )
116
115
}
117
116
}
118
117
} ,
@@ -123,15 +122,6 @@ export default {
123
122
mounted ( ) {
124
123
// Set up destroy handler
125
124
this . $on ( 'hook:beforeDestroy' , this . clearDebounce )
126
- // Preset the internal state
127
- const { value } = this
128
- const stringifyValue = toString ( value )
129
- const modifiedValue = this . modifyValue ( value )
130
- /* istanbul ignore next */
131
- if ( stringifyValue !== this . localValue && modifiedValue !== this . vModelValue ) {
132
- this . localValue = stringifyValue
133
- this . vModelValue = modifiedValue
134
- }
135
125
} ,
136
126
methods : {
137
127
clearDebounce ( ) {
You can’t perform that action at this time.
0 commit comments