fix(sensitiveinput): do not capture enter key input (#1650)

This commit is contained in:
TheCatLady
2021-05-16 20:10:50 -04:00
committed by GitHub
parent 2ef57e9b1a
commit bb8d14b5ff

View File

@@ -43,6 +43,7 @@ const SensitiveInput: React.FC<SensitiveInputProps> = ({
e.preventDefault();
setHidden(!isHidden);
}}
type="button"
className="input-action"
>
{isHidden ? <EyeOffIcon /> : <EyeIcon />}