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

Filter unregistered fields in the current form at commit time

Open
#485 0 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

### Are you submitting a **bug report** or a **feature request**?
feature request

### What is the current behavior?
When getting data from the background and filling it into the form (editing function), there are many fields obtained from the background that are not registered in the current form. After modifying the values of some fields, clicking Submit will submit all the values of initialValues (there are many The field is the current form for registration and is also submitted)

### What is the expected behavior?
I hope to only submit the filed of the current form registration, and other unregistered automatically filtered out.
### Sandbox Link

### What's your environment?
"react": "^16.8.6",
"final-form": "^4.13.0",
"react-final-form": "^5.0.1",

### Other information

How to deal with this situation (do not want to handle it when you submit it)

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.