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

Conditionally rendered fields are not removed from the form state #331

Closed
kettanaito opened this issue Nov 16, 2018 · 0 comments
Closed
Assignees
Milestone

Comments

@kettanaito
Copy link
Owner

Environment

  • react-advanaced-form: 1.5.9

What:

There is a possibility that field's unregistering doesn't work as expected. When a conditionally rendered fields are rendered (registered), and then unmounted, their records persist in the form's state.

Expected behavior

A field's record is entirely removed from the form's state upon unmounting a field.

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

No branches or pull requests

1 participant