-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
Are you submitting a bug report or a feature request?
Bug report
What is the current behavior?
If keepDirtyOnReinitialize is true, when a field is changed from its initial value to undefined, the initialize logic will set formState.values to undefined which causes the form to crash.
What is the expected behavior?
formState.values should never become undefined. If a field's value is changed to undefined, the key should be removed from formState.values.
Sandbox Link
What's your environment?
final-form 4.20.6
react-final-form 6.5.8
node 16
Other information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels