Skip to content

Commit

Permalink
Update packages/rrweb/src/record/mutation.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Eoghan Murray <[email protected]>
  • Loading branch information
benjackwhite and eoghanmurray authored Oct 13, 2023
1 parent bd8fb92 commit 4d540ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export default class MutationBuffer {
this.maskTextSelector,
) && value
? this.maskTextFn
? this.maskTextFn(value, getElementFromNode(m.target))
? this.maskTextFn(value, getClosestElementForNode(m.target))
: value.replace(/[\S]/g, '*')
: value,
node: m.target,
Expand Down

0 comments on commit 4d540ef

Please sign in to comment.