-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] onSubmitFail not called anymore on submitHandler promise rejection in v7.2.1 #3801
Comments
@AlimovSV Yeah, that's the spot in the code that introduced this new behaviour. In the latest change in the The problem is that the error thrown in our forms on submission does not extend The docs clearly state:
So I suggest reverting the line change that was introduced in Regards |
@felixhayashi perhaps the test suite could be improved to cover your situation, as I agree this is a breaking change in the expected behavior around |
Published fix in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
after moving from v7.2.0 to v7.2.1 the registered
onSubmitFail
handler is not called anymore ifsubmitHandler
rejects the promise.What is the expected behavior?
onSubmitFail
should be called if an an async submitHandler rejects the promise.What's your environment?
Chrome
The text was updated successfully, but these errors were encountered: