-
-
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
Error when submit form with asyncValidate and asyncChangeFields #3658
Comments
I'm having the same issue and see the same error stacktrace.
|
I had the same issue when using 7.2.0, had to revert my project to 7.1.2 since the issue was introduced in 7.2.0. This was introduced with #3531. |
Pushed a proposed fix to #3733 |
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. |
Are you submitting a bug report or a feature request?
Bug report
What is the current behavior?
When submit form with
asyncValidate
andasyncChangeValues
got error because of that line:https://github.com/erikras/redux-form/blob/master/src/handleSubmit.js#L95
asyncValidate
called with no arguments, so herehttps://github.com/erikras/redux-form/blob/master/src/createReduxForm.js#L684-L689
after webpack build conditions are inlined:
trigger
is not blur (its undefined, like all other args),asyncChangeFields
is arrayWhat is the expected behavior?
Do not throw error?
Sandbox Link
Example: JSFiddle
What's your environment?
React 16.2.0
Redux-Form 7.2.0
Ubuntu 17.10 Google Chrome 62.0.3202.94
Other information
Error stacktrace
UPD: My bad, code is ok, looks like it's babel/webpack issue?
source:
after translation no parentheses (in JSFiddle too):
The text was updated successfully, but these errors were encountered: