Skip to content

Commit a11342a

Browse files
greyscaledkylecarbs
authored andcommitted
fix: error when clicking on login screen (#1445)
Resolves: #1435
1 parent bf77a3b commit a11342a

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)