Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validateOnSubmit #2200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add validateOnSubmit #2200

wants to merge 1 commit into from

Conversation

jaredpalmer
Copy link
Owner

  • Add flag validateOnSubmit?: boolean = true to <Formik>/useFormik()/withFormik(). When set to false, Formik will not run validation or check for errors before running onSubmit prop.

@vercel
Copy link

vercel bot commented Jan 13, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/jared/formik-docs/lvgc55u53
✅ Preview: https://formik-docs-git-feat-validateonsubmit.jared.now.sh

@jaredpalmer
Copy link
Owner Author

jaredpalmer commented Jan 13, 2020

@CompuIves @SaraVieira how do i fix codesandbox CI? Seems to have broken when I set node engine in package.json (This change was builds required by latest now.sh update because of upstream AWS Lambda Node 8 EOL).

@kc980602
Copy link

support adding validateOnSubmit, this is very useful when we want to trigger validation manually during onSubmit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants