From 4fe09330ed65e67b9361d04cf6a84895445c822e Mon Sep 17 00:00:00 2001 From: Alexey Babik Date: Fri, 21 Jun 2024 10:10:03 -0700 Subject: [PATCH] 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 --- .changeset/beige-olives-roll.md | 6 ++++++ packages/rrweb/src/record/index.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changeset/beige-olives-roll.md diff --git a/.changeset/beige-olives-roll.md b/.changeset/beige-olives-roll.md new file mode 100644 index 0000000000..4707f55aca --- /dev/null +++ b/.changeset/beige-olives-roll.md @@ -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 diff --git a/packages/rrweb/src/record/index.ts b/packages/rrweb/src/record/index.ts index e663b205f8..fdf5c2e306 100644 --- a/packages/rrweb/src/record/index.ts +++ b/packages/rrweb/src/record/index.ts @@ -386,6 +386,7 @@ function record( maskAllInputs: maskInputOptions, maskInputFn, maskTextFn, + maskInputFn, slimDOM: slimDOMOptions, dataURLOptions, recordCanvas,