final-form / final-form/react-final-form

Specify `parse={null}` behavior on the form level

Open
#384 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.