final-form / react-final-form

🏁 High performance subscription-based form state management for React
https://final-form.org/react
MIT License
7.39k stars 481 forks source link

Using `FormSpy` and `FieldArray`, each validation resets the form #623

Open PeterMK85 opened 5 years ago

PeterMK85 commented 5 years ago

Are you submitting a bug report or a feature request?

Bug

What is the current behavior?

https://codesandbox.io/s/react-final-form-field-arrays-l2bum (if you remove FormSpy, inputs will be validated properly)

What is the expected behavior?

On FieldArray input, the input should be validated, not reseted like now

Sandbox Link

https://codesandbox.io/s/react-final-form-field-arrays-l2bum (if you remove FormSpy, inputs will be validated properly)

What's your environment?

image

piotrd commented 4 years ago

Any news on that by chance?