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

pull/1633/head
TheCatLady 4 years ago committed by GitHub
parent 2ef57e9b1a
commit bb8d14b5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save