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:
+1
@@ -233,6 +233,7 @@ export const SignInUpTOTPVerification = () => {
|
||||
onBlur={onBlur}
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
autoFocus
|
||||
render={({ slots }) => (
|
||||
<StyledOTPContainer>
|
||||
<StyledSlotGroup>
|
||||
|
||||
+1
@@ -239,6 +239,7 @@ export const SettingsAdminServerAdminAccess = ({
|
||||
maxLength={6}
|
||||
value={otp}
|
||||
onChange={setOtp}
|
||||
autoFocus
|
||||
render={({ slots }) => (
|
||||
<StyledOTPContainer>
|
||||
{slots.slice(0, 3).map((slot, index) => (
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ export const TwoFactorAuthenticationVerificationForSettings = () => {
|
||||
onBlur={onBlur}
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
autoFocus
|
||||
render={({ slots }) => (
|
||||
<StyledOTPContainer>
|
||||
{slots.slice(0, 3).map((slot, idx) => (
|
||||
|
||||
Reference in New Issue
Block a user