-
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
5.2.0
Current Behavior
Using this json Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"type": "object",
"required": [
"increment"
],
"properties": {
"increment": {
"type": "object"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"reset"
],
"properties": {
"reset": {
"type": "object",
"required": [
"count"
],
"properties": {
"count": {
"type": "integer",
"format": "int32"
}
}
}
},
"additionalProperties": false
}
]
}
when form is first initialized formData is {increment: {}}
and when I change to reset
formData is set to {increment: undefined, reset: {}}
and again when change to increment
formData is {increment: undefined, reset: undefined}
Expected Behavior
When changing back to option increment
It should be {increment: {}}
not {increment: undefined, reset: undefined}
Steps To Reproduce
Environment
- OS: Mac Sonoma 14.5
- Node: 20.0.0
- npm: 9.6.4
- yarn: 1.22.22
Anything else?
No response