Skip to content

Commit 1088c72

Browse files
authored
Merge pull request #1 from hcg1023/fix-311
fix: check wrapper element to fix testing-library#311
2 parents f5a3483 + 2ced31f commit 1088c72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/render.js

+1
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)