Skip to content

Commit c8ff928

Browse files
authored
🐛 fix: fix password input text
fix: fix password input text
2 parents bb1a4c1 + d10aad2 commit c8ff928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/inputText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const parseInputTextToText = (
1919
const { value, placeholder } = node as HTMLInputElement;
2020
if (!value && !placeholder) return;
2121
if (value) {
22-
pseudoText = value;
22+
pseudoText = node.type === 'password' ? value.replace(/./g, '•') : value;
2323
} else {
2424
pseudoText = placeholder;
2525
}

0 commit comments

Comments
 (0)