Skip to content

Commit

Permalink
fix(src/index.js): fix exception when testing with Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
obourdon committed Mar 17, 2021
1 parent 55f11ad commit 984cf15
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 984cf15

Please sign in to comment.