Skip to content

Commit

Permalink
ref: Ensure text is always masked
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Oct 25, 2023
1 parent 3639359 commit db45766
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,16 @@ function initInputObserver({
if (type === 'radio' && name && isChecked) {
doc
.querySelectorAll(`input[type="radio"][name="${name}"]`)
.forEach((el) => {
.forEach((el: HTMLInputElement) => {
if (el !== target) {
const text = (el as HTMLInputElement).value;
const text = maskInputValue({
element: el,
maskInputOptions,
tagName,
type,
value: el.value,
maskInputFn,
});
cbWithDedup(
el,
userTriggeredOnInput
Expand Down

0 comments on commit db45766

Please sign in to comment.