Skip to content

Commit

Permalink
fix(react): password eye icon not working without criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Oct 17, 2024
1 parent 1a22650 commit 531d101
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/components/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const PasswordField: ForwardRefExoticComponent<TextFieldProps> = forwardRef(

const PasswordFieldWithCriteria: ForwardRefExoticComponent<TextFieldProps> = forwardRef(
<C extends ElementType = ElementType>(
{criteria, id, type, ...rest}: TextFieldProps<C>,
{criteria, id, ...rest}: TextFieldProps<C>,
ref: Ref<HTMLDivElement>,
): ReactElement => {
const [openPasswordCriteriaTooltip, setOpenPasswordCriteriaTooltip] = useState<boolean>(false);
Expand Down Expand Up @@ -138,7 +138,6 @@ const PasswordFieldWithCriteria: ForwardRefExoticComponent<TextFieldProps> = for
<PasswordField
ref={ref}
id={id}
type={type}
onClick={handleClick}
onBlurCapture={handleBlurCapture}
onFocus={handleClick}
Expand Down

0 comments on commit 531d101

Please sign in to comment.