final-form / react-final-form-arrays

A component for rendering and editing arrays 🏁 React Final Form
MIT License
205 stars 70 forks source link

FieldArray wrapped in `div` not updating parent form #155

Closed TrySpace closed 3 years ago

TrySpace commented 3 years ago

I was building an external component to put in my main Form component.

It was not updateing the parent form. Turns out that was because I was wrapping it in a div, and probably react-final-form, does not look deeper than 1 level to see if there's a Field or FieldArray

Making an issue so other people might find it, but closing it immediatelly.

TrySpace commented 3 years ago

Seems I was wrong, the issue was with the component I was using (material-ui-chip-input) inside the FieldArray.

When the initial value was empty, no change was triggered. See: https://github.com/TeamWertarbyte/material-ui-chip-input/pull/340