Skip to content

Commit b7dff95

Browse files
authored
Merge pull request #7 from alberto/patch-2
Fix: Incorrect property name check
2 parents 06ec0a3 + f34702a commit b7dff95

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)