Skip to content

Commit c22b6f6

Browse files
authored
fix: CP-12599 call autofocus after animation (#513)
1 parent e62d547 commit c22b6f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/next/src/pages/LockScreen/LockScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const LockScreen: FC<Props> = ({ unlockWallet }) => {
5757
</WarningMessage>
5858
)}
5959

60-
<Collapse in={isUIReady}>
60+
<Collapse in={isUIReady} mountOnEnter unmountOnExit>
6161
<Unlock
6262
onUnlock={unlockWallet}
6363
onForgotPasswordClick={showForgotPasswordModal}

apps/next/src/pages/LockScreen/components/Unlock.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const Unlock: React.FC<Props> = ({
4545
return (
4646
<Stack direction="column" width="100cqw" px="20px" mt={8}>
4747
<PasswordField
48+
autoFocus
4849
onChange={(e) => setPassword(e.target.value)}
4950
onKeyDown={shortcuts.onKeyDown}
5051
error={!!error}

0 commit comments

Comments
 (0)