Skip to content

Commit f885f1f

Browse files
authored
fix(index.js): fix exception when testing with Jest (#682)
1 parent 55f11ad commit f885f1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ class ReactTooltip extends React.Component {
189189
let domRoot;
190190

191191
switch (parentNode.constructor.name) {
192+
case 'Document':
192193
case 'HTMLDocument':
193194
domRoot = parentNode.head;
194195
break;

0 commit comments

Comments
 (0)