ce-la-react
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -53,3 +53,3 @@ /** | ||
const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k); | ||
if (k in elementClass.prototype && !(k in HTMLElement.prototype) && !elementClass.observedAttributes?.some((attr) => attr === attrName)) { | ||
if (k in elementClass.prototype && !(k in (globalThis.HTMLElement?.prototype ?? {})) && !elementClass.observedAttributes?.some((attr) => attr === attrName)) { | ||
elementProps[k] = v; | ||
@@ -130,3 +130,3 @@ continue; | ||
node[name] = value; | ||
if (value == null && name in HTMLElement.prototype) { | ||
if (value == null && name in (globalThis.HTMLElement?.prototype ?? {})) { | ||
node.removeAttribute(name); | ||
@@ -133,0 +133,0 @@ } |
{ | ||
"name": "ce-la-react", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Create a React component from a custom element.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19517