Add autofocus to 2FA OTP inputs (#23067)

as title
<img width="854" height="533" alt="image"
src="https://github.com/user-attachments/assets/777c2d83-8318-4337-865d-67aebc9186c2"
/>
This commit is contained in:
martmull
2026-07-20 16:29:19 +02:00
committed by GitHub
parent fd5afd00de
commit 45b319ef2d
3 changed files with 3 additions and 0 deletions
@@ -233,6 +233,7 @@ export const SignInUpTOTPVerification = () => {
onBlur={onBlur}
onChange={onChange}
value={value}
autoFocus
render={({ slots }) => (
<StyledOTPContainer>
<StyledSlotGroup>
@@ -239,6 +239,7 @@ export const SettingsAdminServerAdminAccess = ({
maxLength={6}
value={otp}
onChange={setOtp}
autoFocus
render={({ slots }) => (
<StyledOTPContainer>
{slots.slice(0, 3).map((slot, index) => (
@@ -34,6 +34,7 @@ export const TwoFactorAuthenticationVerificationForSettings = () => {
onBlur={onBlur}
onChange={onChange}
value={value}
autoFocus
render={({ slots }) => (
<StyledOTPContainer>
{slots.slice(0, 3).map((slot, idx) => (