Skip to content

Commit 20cd110

Browse files
committed
Update comment
1 parent 2f7452d commit 20cd110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wait-for-element-to-be-removed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function waitForElementToBeRemoved(
3535
),
3636
)
3737
} else {
38-
// Only observe if synchronous test passes
38+
// Only observe for mutations only if there is element while checking synchronously
3939
observer.observe(container, mutationObserverOptions)
4040
}
4141
} catch (error) {

0 commit comments

Comments
 (0)