Skip to content

Commit

Permalink
fix(index.js): fix exception when testing with Jest (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
obourdon authored Mar 26, 2021
1 parent 55f11ad commit f885f1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class ReactTooltip extends React.Component {
let domRoot;

switch (parentNode.constructor.name) {
case 'Document':
case 'HTMLDocument':
domRoot = parentNode.head;
break;
Expand Down

0 comments on commit f885f1f

Please sign in to comment.