Skip to content

Commit 63c3bd7

Browse files
authored
Don't obscure text of form buttons under maskAllInputs (more modern style would be a <button>) (#35)
1 parent 647e314 commit 63c3bd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/snapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ function serializeNode(
242242
if (
243243
attributes.type !== 'radio' &&
244244
attributes.type !== 'checkbox' &&
245+
attributes.type !== 'submit' &&
246+
attributes.type !== 'button' &&
245247
value
246248
) {
247249
attributes.value = maskAllInputs ? '*'.repeat(value.length) : value;

0 commit comments

Comments
 (0)