fixed password visible

This commit is contained in:
anovazzi1 2023-05-02 19:03:21 -03:00
commit 6c36545f98

View file

@ -27,9 +27,9 @@ export default function InputComponent({
<input
value={myValue}
className={classNames(
"block w-full form-input dark:bg-gray-900 dark:border-gray-600 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm",
"block w-full pr-12 form-input dark:bg-gray-900 dark:border-gray-600 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm",
disabled ? " bg-gray-200 dark:bg-gray-700" : "",
password && !pwdVisible ? "password" : ""
password && !pwdVisible && myValue!=="" ? "password" : ""
)}
placeholder="Type a text"
onChange={(e) => {