Skip to content

Commit f11449d

Browse files
committedMar 20, 2019
fix(core): only unset dom prop when not present
fix vuejs#9650
1 parent 02d21c2 commit f11449d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
1919
}
2020

2121
for (key in oldProps) {
22-
if (isUndef(props[key])) {
22+
if (!(key in props)) {
2323
elm[key] = ''
2424
}
2525
}
26+
2627
for (key in props) {
2728
cur = props[key]
2829
// ignore children if the node has textContent or innerHTML,

0 commit comments

Comments
 (0)
Please sign in to comment.