-
Notifications
You must be signed in to change notification settings - Fork 47
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
Form sends onChange before conditional re-validation applied #57
Comments
@mrclay Can you provide an example of a form and change that is happening. |
EAG-219 Padding added at the bottom of the plan section
Faced the same issue. Here is my example:
When you submitting form you will get required field2 in errors |
I'm sorry I've not been able to provide an example form. They're all large and use many custom widgets/fields, and to be fair it's quite possible our problems lie there. |
We have lots of required conditionally displayed questions and the Form's onChange is firing too early, sending us the set of errors before the revalidation of the new schema has been completed.
Our current workaround is to have several of our widgets (ones which affect others) call onChange a second time after a short delay. After the delay the Form internally has the correct set of errors considering all rules.
The text was updated successfully, but these errors were encountered: