Skip to content

Commit 2de2a7c

Browse files
committed
Also check for null-valued attributes
1 parent 790f2b5 commit 2de2a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/dom.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function removeListener(node, event, handler) {
8282
}
8383

8484
export function setAttribute(node, attribute, value) {
85-
if (value === undefined) removeAttribute(node, attribute);
85+
if (value == null) removeAttribute(node, attribute);
8686
else node.setAttribute(attribute, value);
8787
}
8888

0 commit comments

Comments
 (0)