File tree 1 file changed +5
-5
lines changed
src/platforms/web/runtime/modules 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ function shouldUpdateValue (
56
56
return ( ! elm . composing && (
57
57
vnode . tag === 'option' ||
58
58
isDirty ( elm , checkVal ) ||
59
- isInputChanged ( vnode , checkVal )
59
+ isInputChanged ( elm , checkVal )
60
60
) )
61
61
}
62
62
@@ -65,10 +65,10 @@ function isDirty (elm: acceptValueElm, checkVal: string): boolean {
65
65
return document . activeElement !== elm && elm . value !== checkVal
66
66
}
67
67
68
- function isInputChanged ( vnode : VNodeWithData , newVal : string ) : boolean {
69
- const value = vnode . elm . value
70
- const modifiers = vnode . elm . _vModifiers // injected by v-model runtime
71
- if ( ( modifiers && modifiers . number ) || vnode . elm . type === 'number' ) {
68
+ function isInputChanged ( elm : any , newVal : string ) : boolean {
69
+ const value = elm . value
70
+ const modifiers = elm . _vModifiers // injected by v-model runtime
71
+ if ( ( modifiers && modifiers . number ) || elm . type === 'number' ) {
72
72
return toNumber ( value ) !== toNumber ( newVal )
73
73
}
74
74
if ( modifiers && modifiers . trim ) {
You can’t perform that action at this time.
0 commit comments