We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a8d22 commit edc52dbCopy full SHA for edc52db
packages/rrweb/src/record/mutation.ts
@@ -717,7 +717,13 @@ export default class MutationBuffer {
717
if (this.processedNodeManager.inOtherBuffer(n, this)) return;
718
719
// if n is added to set, there is no need to travel it and its' children again
720
- if (this.addedSet.has(n) || this.movedSet.has(n)) return;
+ if (this.addedSet.has(n)) {
721
+ // update the order of added nodes in addedSet for the `emit` phase
722
+ this.addedSet.delete(n);
723
+ this.addedSet.add(n);
724
+ return;
725
+ }
726
+ if (this.movedSet.has(n)) return;
727
728
if (this.mirror.hasNode(n)) {
729
if (isIgnored(n, this.mirror)) {
0 commit comments