[WEB-2211] fix: input autoComplete (#5333)
* fix: input autoComplete * chore: code refactor * chore: set autoComplete on for email, password and name
This commit is contained in:
parent
0b72bd373b
commit
24b1e71cbf
14 changed files with 36 additions and 1 deletions
|
|
@ -174,6 +174,7 @@ export const InstanceSetupForm: FC = (props) => {
|
|||
placeholder="Wilber"
|
||||
value={formData.first_name}
|
||||
onChange={(e) => handleFormChange("first_name", e.target.value)}
|
||||
autoComplete="on"
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -190,6 +191,7 @@ export const InstanceSetupForm: FC = (props) => {
|
|||
placeholder="Wright"
|
||||
value={formData.last_name}
|
||||
onChange={(e) => handleFormChange("last_name", e.target.value)}
|
||||
autoComplete="on"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -208,6 +210,7 @@ export const InstanceSetupForm: FC = (props) => {
|
|||
value={formData.email}
|
||||
onChange={(e) => handleFormChange("email", e.target.value)}
|
||||
hasError={errorData.type && errorData.type === EErrorCodes.INVALID_EMAIL ? true : false}
|
||||
autoComplete="on"
|
||||
/>
|
||||
{errorData.type && errorData.type === EErrorCodes.INVALID_EMAIL && errorData.message && (
|
||||
<p className="px-1 text-xs text-red-500">{errorData.message}</p>
|
||||
|
|
@ -247,6 +250,7 @@ export const InstanceSetupForm: FC = (props) => {
|
|||
hasError={errorData.type && errorData.type === EErrorCodes.INVALID_PASSWORD ? true : false}
|
||||
onFocus={() => setIsPasswordInputFocused(true)}
|
||||
onBlur={() => setIsPasswordInputFocused(false)}
|
||||
autoComplete="on"
|
||||
/>
|
||||
{showPassword.password ? (
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ export const InstanceSignInForm: FC = (props) => {
|
|||
placeholder="name@company.com"
|
||||
value={formData.email}
|
||||
onChange={(e) => handleFormChange("email", e.target.value)}
|
||||
autoComplete="on"
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -145,6 +146,7 @@ export const InstanceSignInForm: FC = (props) => {
|
|||
placeholder="Enter your password"
|
||||
value={formData.password}
|
||||
onChange={(e) => handleFormChange("password", e.target.value)}
|
||||
autoComplete="on"
|
||||
/>
|
||||
{showPassword ? (
|
||||
<button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue