Skip to content

Commit cf6db41

Browse files
Make otp input autofocus
1 parent 074a0de commit cf6db41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/$whimId.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function OtpEntry({ whimId, otp, onOtpChange, onSubmit }: OtpEntryProps) {
114114
value={otp}
115115
onChange={onOtpChange}
116116
onComplete={onOtpChange}
117+
autoFocus
117118
>
118119
<InputOTPGroup>
119120
<InputOTPSlot index={0} />

0 commit comments

Comments
 (0)