Skip to content

Commit

Permalink
.attributes are no longer populated when an element is blocked afte…
Browse files Browse the repository at this point in the history
…r "Ensure blocking class is respected to prevent processing of assets"
  • Loading branch information
eoghanmurray committed Feb 25, 2025
1 parent 1175c68 commit 046c9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ function serializeElementNode(
if (needBlock) {
const { width, height } = n.getBoundingClientRect();
attributes = {
class: attributes.class,
class: n.className,
rr_width: `${width}px`,
rr_height: `${height}px`,
};
Expand Down

0 comments on commit 046c9fa

Please sign in to comment.