Solutionunvalidated
Set the modal trigger to call Formik's handleSubmit (or use a type="button" that invokes handleSubmit) and update setSubmitting/isSubmitting within Formik's onSubmit. Use an async operation (or proper promise) inside onSubmit so Formik can manage isSubmitting correctly.
2310040a-96ef-43a6-99b1-ee3610d5e9d6
Set the modal trigger to call Formik's handleSubmit (or use a type="button" that invokes handleSubmit) and update setSubmitting/isSubmitting within Formik's onSubmit. Use an async operation (or proper promise) inside onSubmit so Formik can manage isSubmitting correctly.