Fixes setting custom element data to zero

pull/1850/head
Dominik Winkelbauer 6 years ago committed by GitHub
parent 28dd6a899a
commit a4bc7c5a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,7 +101,7 @@ export function setAttributes(node, attributes) {
export function setCustomElementData(node, prop, value) {
if (prop in node) {
node[prop] = value;
} else if (value) {
} else if (value != null) {
setAttribute(node, prop, value);
} else {
node.removeAttribute(prop);

Loading…
Cancel
Save