Skip to content

Commit

Permalink
fix(domexception): revert previous changed for unexpected behavior
Browse files Browse the repository at this point in the history
fix #667
  • Loading branch information
roggervalf committed Jan 15, 2021
1 parent 847a910 commit 85e38bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ReactTooltip extends React.Component {
parentNode = parentNode.parentNode;
}
const head = parentNode.querySelector('head');
domRoots.push(parentNode || head);
domRoots.push(head || parentNode);
});
if (domRoots.length) {
const style = document.createElement('style');
Expand Down

0 comments on commit 85e38bb

Please sign in to comment.