()
| 73 | } |
| 74 | |
| 75 | getMountTarget() { |
| 76 | const doc = this.getDoc(); |
| 77 | |
| 78 | if (!doc || !doc.body) { |
| 79 | return null; |
| 80 | } |
| 81 | |
| 82 | if (this.props.mountTarget) { |
| 83 | return doc.querySelector(this.props.mountTarget); |
| 84 | } |
| 85 | |
| 86 | return doc.body.children[0]; |
| 87 | } |
| 88 | |
| 89 | setRef = (node) => { |
| 90 | this.nodeRef.current = node; |
no test coverage detected