Comparing version 7.0.3 to 7.0.4
12
index.js
@@ -376,5 +376,9 @@ const keys = Object.keys | ||
node[key] = value | ||
} else if (value === true) { | ||
attr(node, key, "") | ||
} else if (value !== false && value != null) { | ||
} else if (isBoolean(value)) { | ||
if (value === true) { | ||
attr(node, key, "") | ||
} | ||
node[key] = value | ||
} else if (value != null) { | ||
if (node instanceof SVGElement && !nonPresentationSVGAttributes.test(key)) { | ||
@@ -481,3 +485,2 @@ attr(node, normalizeAttribute(key, "-"), value) | ||
export default index | ||
export { | ||
@@ -491,2 +494,3 @@ Component, | ||
createRef, | ||
index as default, | ||
createElement as h, | ||
@@ -493,0 +497,0 @@ isRef, |
@@ -226,5 +226,9 @@ const keys = Object.keys | ||
node[key] = value | ||
} else if (value === true) { | ||
attr(node, key, "") | ||
} else if (value !== false && value != null) { | ||
} else if (isBoolean(value)) { | ||
if (value === true) { | ||
attr(node, key, "") | ||
} | ||
node[key] = value | ||
} else if (value != null) { | ||
attr(node, key, value) | ||
@@ -323,3 +327,2 @@ } | ||
export default index | ||
export { | ||
@@ -333,2 +336,3 @@ Component, | ||
createRef, | ||
index as default, | ||
createElement as h, | ||
@@ -335,0 +339,0 @@ isRef, |
{ | ||
"name": "jsx-dom", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "JSX to document.createElement.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
99511
2668