File tree 1 file changed +7
-9
lines changed
src/platforms/web/runtime/modules
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,6 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
38
38
}
39
39
}
40
40
41
- // skip the update if old and new VDOM state is the same.
42
- // the only exception is `value` where the DOM value may be temporarily
43
- // out of sync with VDOM state due to focus, composition and modifiers.
44
- // This also covers #4521 by skipping the unnecesarry `checked` update.
45
- if ( key !== 'value' && cur === oldProps [ key ] ) {
46
- continue
47
- }
48
-
49
41
if ( key === 'value' ) {
50
42
// store value as _value as well since
51
43
// non-string values will be stringified
@@ -66,7 +58,13 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
66
58
while ( svg . firstChild ) {
67
59
elm . appendChild ( svg . firstChild )
68
60
}
69
- } else {
61
+ } else if (
62
+ // skip the update if old and new VDOM state is the same.
63
+ // `value` is handled separately because the DOM value may be temporarily
64
+ // out of sync with VDOM state due to focus, composition and modifiers.
65
+ // This #4521 by skipping the unnecesarry `checked` update.
66
+ cur !== oldProps [ key ]
67
+ ) {
70
68
elm [ key ] = cur
71
69
}
72
70
}
You can’t perform that action at this time.
0 commit comments