final-form / final-form/react-final-form
Non-rendered field changes are not reflected on render
Open
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
I have a field in a form that I want to render based on another field's value.
I listen to "OnChange" event of that field, and then trigger form.change for the new field (which is not rendered yet and I guess non-registered), but it won't get the value while rendered although it exists in "values" object.
I created a sandbox for the issue: https://codesandbox.io/embed/priceless-keldysh-gfd3b
The expected result: when selecting "Heat", scaling factor should be displayed and get the value '1' (If I click on scaling factor's textbox, the value appears).
Contributor guide
Assessment
This issue has not been assessed yet.