Skip to content

Commit 85e38bb

Browse files
committed
fix(domexception): revert previous changed for unexpected behavior
fix #667
1 parent 847a910 commit 85e38bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class ReactTooltip extends React.Component {
185185
parentNode = parentNode.parentNode;
186186
}
187187
const head = parentNode.querySelector('head');
188-
domRoots.push(parentNode || head);
188+
domRoots.push(head || parentNode);
189189
});
190190
if (domRoots.length) {
191191
const style = document.createElement('style');

0 commit comments

Comments
 (0)