Open awakened23 opened 5 years ago
Not at the moment. This is something to consider for us to consider for v2
Yes, i need to different validation on change from validation on submit. When i have validation from change, i want to validate only touched fields, but before submit - want to validate all fields
Possible Solution:
add the source
props to validation. Where source
is 'change' | 'blur' | 'submit' | string
lol no answer, :(((
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 60 days
❓Question
I need to show an additional error message if validation fails on submit. This error message should not be displayed if validation fails on change/ on blur. Looks like there is no way to tell if the validation errors happen on submit since the validate function is called on change, blur and submit. The validation that happens on change/blur can be disabled so that I know the errors happen on submit but I need the validation to happen on change and blur as well.
Here is what I did:
This works but the validate function is run twice when the submit button is clicked. Is there a better way to do this?