Fix for issue #890 (#891)

This commit is contained in:
Dmytro Kozlovskyi
2022-05-09 17:28:36 +03:00
committed by GitHub
parent a0e6641505
commit 3cdcb8a12b

View File

@@ -270,7 +270,7 @@ export default class MutationBuffer {
// ensure shadowHost is a Node, or doc.contains will throw an error
const notInDoc =
!this.doc.contains(n) &&
(rootShadowHost === null || !this.doc.contains(rootShadowHost));
(!rootShadowHost || !this.doc.contains(rootShadowHost));
if (!n.parentNode || notInDoc) {
return;
}