Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e061715

Browse files
authored
fix: error when clicking on login screen (#1445)
Resolves: #1435
1 parent fe7645b commit e061715

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/src/components/SignInForm/SignInForm.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export const SignInForm: React.FC<SignInFormProps> = ({
7676
password: "",
7777
},
7878
validationSchema,
79+
// The email field has an autoFocus, but users may login with a button click.
80+
// This is set to `false` in order to keep the autoFocus, validateOnChange
81+
// and Formik experience friendly. Validation will kick in onChange (any
82+
// field), or after a submission attempt.
83+
validateOnBlur: false,
7984
onSubmit,
8085
})
8186
const getFieldHelpers = getFormHelpers<BuiltInAuthFormValues>(form)

0 commit comments

Comments
 (0)