Skip to content

Commit

Permalink
🐛 fix: fix password input text
Browse files Browse the repository at this point in the history
fix: fix password input text
  • Loading branch information
arvinxx committed Jun 23, 2021
2 parents bb1a4c1 + d10aad2 commit c8ff928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/inputText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const parseInputTextToText = (
const { value, placeholder } = node as HTMLInputElement;
if (!value && !placeholder) return;
if (value) {
pseudoText = value;
pseudoText = node.type === 'password' ? value.replace(/./g, '•') : value;
} else {
pseudoText = placeholder;
}
Expand Down

0 comments on commit c8ff928

Please sign in to comment.