File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/platforms/web/runtime/modules Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ function shouldUpdateValue (
5656 return ( ! elm . composing && (
5757 vnode . tag === 'option' ||
5858 isDirty ( elm , checkVal ) ||
59- isInputChanged ( vnode , checkVal )
59+ isInputChanged ( elm , checkVal )
6060 ) )
6161}
6262
@@ -65,10 +65,10 @@ function isDirty (elm: acceptValueElm, checkVal: string): boolean {
6565 return document . activeElement !== elm && elm . value !== checkVal
6666}
6767
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' ) {
7272 return toNumber ( value ) !== toNumber ( newVal )
7373 }
7474 if ( modifiers && modifiers . trim ) {
You can’t perform that action at this time.
0 commit comments