Skip to content

Commit 2ced31f

Browse files
authored
fix: check wrapper element to fix testing-library#311
1 parent f5a3483 commit 2ced31f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/render.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function cleanup() {
6161

6262
function cleanupAtWrapper(wrapper) {
6363
if (
64+
wrapper.element &&
6465
wrapper.element.parentNode &&
6566
wrapper.element.parentNode.parentNode === document.body
6667
) {

0 commit comments

Comments
 (0)