Skip to content

Commit

Permalink
Fix maskInputFn is ignored during the creation of the full snapshot (#…
Browse files Browse the repository at this point in the history
…1386)

Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
  • Loading branch information
ababik authored Jun 21, 2024
1 parent 5d6dbbb commit a2c8a1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/beige-olives-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"rrweb-snapshot": patch
"rrweb": patch
---

Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ function snapshot(
inlineStylesheet?: boolean;
maskAllInputs?: boolean | MaskInputOptions;
maskTextFn?: MaskTextFn;
maskInputFn?: MaskTextFn;
maskInputFn?: MaskInputFn;
slimDOM?: 'all' | boolean | SlimDOMOptions;
dataURLOptions?: DataURLOptions;
inlineImages?: boolean;
Expand Down
1 change: 1 addition & 0 deletions packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ function record<T = eventWithTime>(
inlineStylesheet,
maskAllInputs: maskInputOptions,
maskTextFn,
maskInputFn,
slimDOM: slimDOMOptions,
dataURLOptions,
recordCanvas,
Expand Down

0 comments on commit a2c8a1a

Please sign in to comment.