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

Reset form does not work on field name with dot notation #179

Closed
jacklimwenjie opened this issue Jun 24, 2019 · 2 comments · Fixed by #393
Closed

Reset form does not work on field name with dot notation #179

jacklimwenjie opened this issue Jun 24, 2019 · 2 comments · Fixed by #393

Comments

@jacklimwenjie
Copy link

jacklimwenjie commented Jun 24, 2019

Field with name of foo.bar, when submit will result in an object of { foo: { bar: value } }.

However, when reset the form with the same object { foo: { bar: value } }, the field with name of foo.bar does not get the value. Resetting with a flatten object e.g. { "foo.bar": value } } does the trick but it would be better if Formsy supports nested object out of the box since dot notation is supported on the field name.

@rkuykendall
Copy link
Member

This is a great issue, thank you!

@rkuykendall
Copy link
Member

Released:

v2.0.1

v2.0.0...v2.0.1

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

Successfully merging a pull request may close this issue.

2 participants