Skip to content

Commit f34702a

Browse files
authored
Fix: Incorrect property name check
Incorrect `datset` property name resulted in fallback branch being always executed.
1 parent 6381c7c commit f34702a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElementPortal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const reDataAttr = /^data\-(.+)$/;
55

66
export const getNodeData = (node) => {
77
// fallback
8-
if (!node.datset) {
8+
if (!node.dataset) {
99
const result = {};
1010
const attributes = node.attributes;
1111
for (let i = 0; i < attributes.length; i++) {

0 commit comments

Comments
 (0)