Submission is only possible if the form is valid.
It might sound obscure, but sometimes you want to submit invalid forms as well. E.g. Drafts of something.
Add property to enable submission of invalid forms.
Then why you need a validation at the first place?
You can completely omit validation functionality provided by Formik and handle necessary validations inside your own handleSubmit function.
To still give the user feedback if everything is fine. (Th form stays open or touched fields)
Yes, true, thats how I do it currently. Just a suggestion, maybe I am not the only one :)
Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.
I will close it for now, may re-open in a future if needed.
I've actually come up to this situation. It's not the exact same scenario, but the same feature would be needed to properly support it:
Then the customer decided they didn't want the operation to be atomic, instead all valid users should be submitted, and removed from the FieldArray, all invalid should stay to be fixed. I don't particularly like this idea (and said as much), but it is what I'm being paid to do. Right now my plan is to re-implement visual validation as part of onBlur/onChange, form level validation in onSubmit. But a simple toggle that would call submit even if not everything was valid would be very useful in not having to do any of that. 馃憤
Most helpful comment
To still give the user feedback if everything is fine. (Th form stays open or touched fields)
Yes, true, thats how I do it currently. Just a suggestion, maybe I am not the only one :)