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

Ran into "is dirty" validation issues when state was used to autofill a form's input field. #1020

Open ShawnCentra opened 1 year ago

ShawnCentra commented 1 year ago

I have a field in my RFF where a user can -> type a partial address -> select an address from a drop down -> have it autofill some of the inputs in my RFF using component level state.

However for validation fields that are using state as value's for input fields will always show empty as the RFFs internal state isn't being updated to be in sync with autofill values from component level state.

Any suggestions on how to proceed?

gertdreyer commented 1 year ago

Can you please provide a CodeSandbox to replicate the problem?