Comparing version 6.4.8 to 6.4.9
@@ -222,4 +222,3 @@ "use strict" | ||
if (key[0] === "o" && key[1] === "n") { | ||
var name = key.slice(2).toLowerCase() | ||
node.addEventListener(name, value) | ||
node[key.toLowerCase()] = value | ||
} | ||
@@ -226,0 +225,0 @@ } else if (value === true) { |
@@ -217,4 +217,3 @@ var __assign = Object.assign | ||
if (key[0] === "o" && key[1] === "n") { | ||
var name = key.slice(2).toLowerCase() | ||
node.addEventListener(name, value) | ||
node[key.toLowerCase()] = value | ||
} | ||
@@ -221,0 +220,0 @@ } else if (value === true) { |
@@ -317,4 +317,3 @@ "use strict" | ||
if (key[0] === "o" && key[1] === "n") { | ||
var name = key.slice(2).toLowerCase() | ||
node.addEventListener(name, value) | ||
node[key.toLowerCase()] = value | ||
} | ||
@@ -321,0 +320,0 @@ } else if (value === true) { |
@@ -312,4 +312,3 @@ var __assign = Object.assign | ||
if (key[0] === "o" && key[1] === "n") { | ||
var name = key.slice(2).toLowerCase() | ||
node.addEventListener(name, value) | ||
node[key.toLowerCase()] = value | ||
} | ||
@@ -316,0 +315,0 @@ } else if (value === true) { |
{ | ||
"name": "jsx-dom", | ||
"version": "6.4.8", | ||
"version": "6.4.9", | ||
"description": "JSX to document.createElement.", | ||
@@ -61,2 +61,2 @@ "main": "lib/index.cjs.js", | ||
} | ||
} | ||
} |
@@ -96,3 +96,3 @@ # jsx-dom | ||
2. Attributes starts with `on` and has a function value will be treated as an event listener and attached to the node with `addEventListener`. | ||
2. Attributes starts with `on` and has a function value will be treated as an event listener and attached to the node by setting the property directly (e.g. `node.onclick = ...`). | ||
@@ -99,0 +99,0 @@ ```jsx |
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
132418
3373