final-form / final-form/react-final-form
Specify `parse={null}` behavior on the form level
Open
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
When creating a form to edit an existing object the empty-to-undefined conversion is problematic for optional fields that can be cleared by the user. Having to specify `parse={null}` in every field is rather annoying and not DRY - also, it's easy to forget.
It would be nice if there was an option to set this behavior on the `` itself.
Contributor guide
Assessment
This issue has not been assessed yet.