Skip to content

Commit

Permalink
Merge pull request #266 from web3ui/fix/input-type-pw-hidden-by-default
Browse files Browse the repository at this point in the history
fix: Input component hide type <password> by default
  • Loading branch information
dani69654 authored Mar 10, 2022
2 parents 8b86956 + b2b5f7d commit 1213092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Input: React.FC<InputProps> = ({
const [isInputHidden, setIsInputHidden] = useState(inputHidden);
const [invalidMessage, setInvalidMessage] = useState(errorMessage);

useEffect(() => setIsInputHidden(inputHidden), [inputHidden]);
useEffect(() => setIsInputHidden(type === 'password'), [inputHidden]);
useEffect(() => setCurrentState(state), [state]);
useEffect(() => setMainType(type), [type]);

Expand Down

0 comments on commit 1213092

Please sign in to comment.