Skip to content

Commit 9c7dac0

Browse files
authored
Merge pull request #44 from input-output-hk/fix/uncontrolled-pw-autofocus
fix: pass autoFocus prop to uncontrolled pw input element
2 parents b052f75 + beea45a commit 9c7dac0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/design-system/password-box/uncontrolled-password-box-input.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const UncontrolledPasswordInput = ({
4141
errorMessage = '',
4242
containerClassName = '',
4343
onChange,
44+
autoFocus,
4445
defaultIsPasswordVisible = false,
4546
containerStyle,
4647
testId,
@@ -68,6 +69,7 @@ export const UncontrolledPasswordInput = ({
6869
type={isPasswordVisible ? 'text' : 'password'}
6970
required={required}
7071
placeholder=""
72+
autoFocus={autoFocus}
7173
className={cn(cx.input, { [cx.largeDots]: !isPasswordVisible })}
7274
disabled={disabled}
7375
name={name}

0 commit comments

Comments
 (0)