kettanaito/react-advanced-form

Conditionally rendered fields are not removed from the form state

kettanaito opened this issue · 0 comments

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.