Skip to content

Commit

Permalink
fix(console): password input tabindex to -1 (#1125)
Browse files Browse the repository at this point in the history
* fix: password input tabindex to -1

* fix: refactor input password tabindex
  • Loading branch information
waynelwz authored Sep 5, 2022
1 parent 7f32512 commit 066648d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export default function Input({ size = 'compact', ...props }: IInputProps) {
if (props.type === 'password') {
overrides.MaskToggleShowIcon = () => <IconFont type='eye' kind='gray' />
overrides.MaskToggleHideIcon = () => <IconFont type='eye_off' kind='gray' />
overrides.MaskToggleButton = {
props: { tabindex: -1 },
}
}

// eslint-disable-next-line react/jsx-props-no-spreading
Expand Down

0 comments on commit 066648d

Please sign in to comment.