Fix: Switch to real dom before rebuilding fullsnapshot (#1139)
This commit is contained in:
@@ -777,6 +777,16 @@ export class Replayer {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Normally rebuilding full snapshot should not be under virtual dom environment.
|
||||
* But if the order of data events has some issues, it might be possible.
|
||||
* Adding this check to avoid any potential issues.
|
||||
*/
|
||||
if (this.usingVirtualDom) {
|
||||
this.virtualDom.destroyTree();
|
||||
this.usingVirtualDom = false;
|
||||
}
|
||||
|
||||
this.mirror.reset();
|
||||
rebuild(event.data.node, {
|
||||
doc: this.iframe.contentDocument,
|
||||
|
||||
Reference in New Issue
Block a user