Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const UncontrolledPasswordInput = ({
errorMessage = '',
containerClassName = '',
onChange,
autoFocus,
defaultIsPasswordVisible = false,
containerStyle,
testId,
Expand Down Expand Up @@ -68,6 +69,7 @@ export const UncontrolledPasswordInput = ({
type={isPasswordVisible ? 'text' : 'password'}
required={required}
placeholder=""
autoFocus={autoFocus}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok with it as an interim solution but I have to point out that this technically may not work 100% of the time: https://blog.logrocket.com/how-to-autofocus-using-react-hooks/

className={cn(cx.input, { [cx.largeDots]: !isPasswordVisible })}
disabled={disabled}
name={name}
Expand Down