@@ -129,13 +129,14 @@ export default {
129
129
}
130
130
return value
131
131
} ,
132
- updateValue ( value , lazy = false ) {
132
+ updateValue ( value , force = false ) {
133
+ if ( this . lazy && ! force ) {
134
+ return
135
+ }
133
136
value = this . modifyValue ( value )
134
137
if ( value !== this . vModelValue ) {
135
138
this . vModelValue = value
136
- if ( ! lazy ) {
137
- this . $emit ( 'update' , value )
138
- }
139
+ this . $emit ( 'update' , value )
139
140
}
140
141
} ,
141
142
onInput ( evt ) {
@@ -155,7 +156,7 @@ export default {
155
156
return
156
157
}
157
158
this . localValue = formattedValue
158
- this . updateValue ( formattedValue , this . lazy )
159
+ this . updateValue ( formattedValue )
159
160
this . $emit ( 'input' , formattedValue )
160
161
} ,
161
162
onChange ( evt ) {
@@ -175,7 +176,7 @@ export default {
175
176
return
176
177
}
177
178
this . localValue = formattedValue
178
- this . updateValue ( formattedValue , this . lazy )
179
+ this . updateValue ( formattedValue )
179
180
this . $emit ( 'change' , formattedValue )
180
181
} ,
181
182
onBlur ( evt ) {
@@ -189,7 +190,7 @@ export default {
189
190
this . localValue = this . stringifyValue ( this . modifyValue ( formattedValue ) )
190
191
// We pass the formatted value here since the `updateValue` method
191
192
// handles the modifies itself
192
- this . updateValue ( formattedValue )
193
+ this . updateValue ( formattedValue , true )
193
194
}
194
195
// Emit native blur event
195
196
this . $emit ( 'blur' , evt )
0 commit comments