Fix maskInputFn is ignored during the creation of the full snapshot (#1386)

Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
This commit is contained in:
Alexey Babik
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 5fd6ea43b4
commit 45640672fe
3 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -383,6 +383,7 @@ function record<T = eventWithTime>(
inlineStylesheet,
maskAllInputs: maskInputOptions,
maskTextFn,
maskInputFn,
slimDOM: slimDOMOptions,
dataURLOptions,
recordCanvas,