Skip to content

Commit

Permalink
keep mirror meta synced
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Jan 16, 2025
1 parent 473eacf commit 35b8eaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,11 @@ export class Replayer {
cache: this.cache,
},
);
// Update mirror meta's attributes
Object.assign(
newSn.attributes,
mutation.attributes as attributes,
);
const siblingNode = target.nextSibling;
const parentNode = target.parentNode;
if (newNode && parentNode) {
Expand Down

0 comments on commit 35b8eaf

Please sign in to comment.