Skip to content

Commit

Permalink
Replace parentNode with parentElement in README
Browse files Browse the repository at this point in the history
For typescript compatibility, see
#200
  • Loading branch information
jamesdiacono committed Sep 14, 2020
1 parent dd6be0d commit 47d3c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ disableBodyScroll(container, {
return true;
}

el = el.parentNode;
el = el.parentElement;
}
},
});
Expand Down

0 comments on commit 47d3c5a

Please sign in to comment.