mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
PasswordField: Don't show password on enter #37444
This commit is contained in:
parent
73d36d5521
commit
b0dcbd568a
@ -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…
Reference in New Issue
Block a user