PasswordField: Don't show password on enter #37444

pull/37449/head
Tobias Skarhed 4 years ago committed by GitHub
parent 73d36d5521
commit b0dcbd568a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      public/app/core/components/PasswordField/PasswordField.tsx

@ -27,11 +27,12 @@ export const PasswordField: FC<Props> = React.forwardRef<HTMLInputElement, Props
suffix={
<IconButton
name={showPassword ? 'eye-slash' : 'eye'}
surface="header"
type="button"
aria-controls={id}
aria-expanded={showPassword}
onClick={(e) => {
e.preventDefault();
aria-role="switch"
aria-checked={showPassword}
aria-label="Show password"
onClick={() => {
setShowPassword(!showPassword);
}}
/>

Loading…
Cancel
Save