Open
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.x
Current Behavior
$ref
objects pointing to objects with oneOf
lists do not update properly when a user tries to change the value via dropdown.
Expected Behavior
The dropdowns should be updating properly when the user changes the value.
Steps To Reproduce
- Use the playground/schema below.
- Try to change the "Approved" dropdown to "Rejected".
- Note that the dropdown doesn't actually change.
Schema:
{
"title": "oneOf Example",
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/status"
}
},
"definitions": {
"status": {
"title": "Field Status",
"type": "object",
"oneOf": [
{
"title": "Approved",
"type": "object"
},
{
"title": "Rejected",
"type": "object",
"properties": {
"reason": {
"title": "Rejection Reason",
"type": "string"
}
}
}
]
}
}
}
Environment
N/A?
Anything else?
The closest existing issues I could find to this are below, but none of them seem caused by the same problem as far as I can tell. In each of those cases, the dropdown text does update, whereas mine does not.
- Open
- Closed