Skip to content
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

Fix the issue with resetAll mangling the errors and fields objects in the state #33

Closed
igokul1973 opened this issue Mar 2, 2019 · 2 comments

Comments

@igokul1973
Copy link

After the resetAll function is run manually, the errors and fields state objects' first field (by that I mean the first field listed in the config) get transformed into numeric keys and values that represent each letter of that first field. This creates some non-existing non-sensical fields and errors, essentially removing the first field from those objects.
This can be fixed by passing null as the second argument to the corresponding reduce functions in the _this.onReset return block in the dist/Form.js.
Please fix it since I unfortunately do not have time for doing PRs.

@selbekk
Copy link
Owner

selbekk commented Mar 12, 2019

Sure, I'll get to it :)

@selbekk
Copy link
Owner

selbekk commented Mar 12, 2019

🎉 This issue has been resolved in version 1.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants