shadow root use the correct dom in iframe (#1037)

Co-authored-by: luocq3 <luocq3@asiainfo.com>
This commit is contained in:
luocongqiu
2022-11-13 16:18:58 +08:00
committed by GitHub
parent fdb7135fbe
commit a9fffb3bc0

View File

@@ -320,7 +320,7 @@ export default class MutationBuffer {
);
}
if (hasShadowRoot(n)) {
this.shadowDomManager.addShadowRoot(n.shadowRoot, document);
this.shadowDomManager.addShadowRoot(n.shadowRoot, this.doc);
}
},
onIframeLoad: (iframe, childSn) => {