We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ca7b7 commit f3970f8Copy full SHA for f3970f8
src/runtime/vdom/modules/attrs.js
@@ -35,7 +35,7 @@ function updateAttrs (oldVnode, vnode) {
35
// use `in` operator since the previous `for` iteration uses it (.i.e. add even attributes with undefined value)
36
// the other option is to remove all attributes with value == undefined
37
for (key in oldAttrs) {
38
- if (!(key in attrs)) {
+ if (attrs[key] == null) {
39
elm.removeAttribute(key)
40
}
41
0 commit comments