-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
v6.0.0-beta.18
Current Behavior
With the omitExtraData
prop set to true, RJSF removes enum objects from the form data. This will also cause validation to fail for required fields.
Expected Behavior
With the omitExtraData
prop set to true, RJSF does not remove enum objects from the form data.
Steps To Reproduce
- Visit the playground link
- Click the submit button
- Notice that validation fails even though the
location
field has a value. - Update the JSON schema to remove the
required
fields. Click the submit button. - Notice that the form successfully submits.
- However, if you check the submitted formData in the console log, the
location
field is missing. - Also notice that the
location
field in the form is now empty after the form is submitted.
- However, if you check the submitted formData in the console log, the
Environment
N/A