Home > Enterprise >  Using Formik form validation onSubmit() doesn't get called while im pressing sumbit button. if
Using Formik form validation onSubmit() doesn't get called while im pressing sumbit button. if

Time:03-11

My code image here

its my Formik comp details, if i commented validationSchema() . onSubmit() get triggered. Help me out.

CodePudding user response:

That's because there are some validation errors

CodePudding user response:

You have validation errors based on your validation schema. You can use formik.errors to see which fields are failing validation.

  • Related