Skip to content

Commit 3c3e6ae

Browse files
committed
tweak
1 parent 7fa8fa7 commit 3c3e6ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/platforms/web/runtime/modules/dom-props.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)