Skip to content

Commit 4b48860

Browse files
authored
Add autofocus to OTP input (#783)
1 parent 3649cb9 commit 4b48860

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/routes/_auth+/verify.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export default function VerifyRoute() {
104104
inputProps={{
105105
...getInputProps(fields[codeQueryParam], { type: 'text' }),
106106
autoComplete: 'one-time-code',
107+
autoFocus: true,
107108
}}
108109
errors={fields[codeQueryParam].errors}
109110
/>

0 commit comments

Comments
 (0)