Fix handling of password input when copied from another input
This commit is contained in:
parent
3f3cd7b9b2
commit
4cfb011dfc
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ export default function InputComponent({
|
||||||
// if the user copies a password from another input
|
// if the user copies a password from another input
|
||||||
// it might come as ••••••••••• it causes errors
|
// it might come as ••••••••••• it causes errors
|
||||||
// in ascii encoding, so we need to handle it
|
// in ascii encoding, so we need to handle it
|
||||||
if (password) {
|
if (password && e.target.value.length > 0) {
|
||||||
// check if all chars are •
|
// check if all chars are •
|
||||||
if (e.target.value.split("").every((char) => char === "•")) {
|
if (e.target.value.split("").every((char) => char === "•")) {
|
||||||
setErrorData({
|
setErrorData({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue