From 53d3e8c29802bde593a677fa2b2276600a365962 Mon Sep 17 00:00:00 2001 From: Amir Moghani Date: Sat, 27 Jun 2026 17:59:12 +0330 Subject: [PATCH] fix(LoginRegisterForm): add username autocomplete --- .../AuthenticationSteps/LoginRegiserForm.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx b/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx index 41ce8c6..db49f56 100644 --- a/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx +++ b/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx @@ -76,7 +76,9 @@ export function LoginRegisterForm({ setLoginRegisterValue(newValue); - const strippedValue = newValue.startsWith('+') ? newValue.substring(1) : newValue; + const strippedValue = newValue.startsWith('+') + ? newValue.substring(1) + : newValue; if (isNumeric(strippedValue) && strippedValue.length > 0) { setAuthType('phone'); } else { @@ -147,7 +149,7 @@ export function LoginRegisterForm({ newValue, res.userStatus, res.totalSecondForOtpToExpire, - authType + authType, ); } else { toast({ message: res.message, severity: 'error' }); @@ -191,7 +193,12 @@ export function LoginRegisterForm({ helperText={inputError && t(error || '')} autoFocus slotProps={{ - htmlInput: { dir: 'auto', sx: { lineHeight: 1.5 } }, + htmlInput: { + dir: 'auto', + sx: { lineHeight: 1.5 }, + name: 'username', + autoComplete: 'username', + }, input: { endAdornment: i18n.dir() === 'rtl' && (