-
-
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
[V6] Submitting with no registered fields #1231
Comments
@clayne11 could you take a look at this issue please? |
I'll look at it. Should be a simple fix. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have the multistep wizard form which last step has no field, just a plain submit button.
Let's consider the follow example:
And also the main component which changes these steps (like in the examples).
The issues is the following: in the reducer of
UNREGISTER_FIELD
action if the there is no fieldsregisteredFields
property is removed and when you try to submit with the removed propertyReduxForm:getFieldList()
method will throw an error.I think that you shouldn't remove the
registeredFields
property from the state and let it to be an empty array.One workaround for this is to create a hidden field
<Field name="hidden" component="input" type="hidden" />
just to make that property not to be empty.The text was updated successfully, but these errors were encountered: