-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
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?
shadcn
Version
6.1.0
Current Behavior
I have the following schema:
{
"type": "object",
"title": "Configuration",
"oneOf": [
{
"title": "Default Configuration",
"type": "object",
"properties": {
"types": {
"const": "default",
"title": "Types"
},
"content": {
"type": "string",
"title": "Content"
}
},
"required": [
"types"
]
},
{
"title": "Advanced Configuration",
"type": "object",
"properties": {
"types": {
"const": "advanced",
"title": "Types"
},
"content": {
"type": "string",
"title": "Content"
}
},
"required": [
"types"
]
},
{
"title": "No Configuration",
"type": "null"
}
],
"default": {
"types": "advanced",
"content": "placeholder"
}
}
See playground
Note: We set "Object fields default behavior" to option "Assign value to formData when only default is set"
Current Behaviour:
No Configuration can not be selected from the dropdown.
Expected Behavior
No Configuration can be selected from the dropdown.
Steps To Reproduce
- Open the playground link
- Set "Object fields default behavior" to option "Assign value to formData when only default is set"
- In the resulting form, try to set the Configuration to No Configuration
Environment
- Browser: ChromeAnything else?
No response
Reactions are currently unavailable