Closed
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
I have a problem when trying to change property values using "liveOmit" and "omitExtraData". This is the JSON schema I use:
{
"title": "Schema",
"type": "object",
"properties": {
"array_of_objects": {
"title": "Array of Objects",
"type": "array",
"items": {
"$ref": "#/definitions/myArrayOfObjects"
},
"minItems": 1
}
},
"definitions": {
"myArrayOfObjects": {
"title": "Array Item",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"booleanProperty": {
"title": "Boolean Property",
"default": true,
"type": "boolean"
}
},
"if": {
"properties": {
"booleanProperty": {
"const": true
}
}
},
"then": {
"properties": {
"otherProperty": {
"title": "Other Property",
"type": "string",
"enum": [
"Hello",
"World"
]
}
},
"required": [
"otherProperty"
]
},
"required": [
"name"
]
}
}
}
Expected Behavior
It should be possible to change the otherProperty
value.
Steps To Reproduce
- Go to the rjsf playground
liveOmit
andomitExtraData
are already turned on,liveValidation
is also turned on to see that the condition is valid- try to change value of
Other Property
- nothing happens
Environment
- OS: macOS 14.2.1
- Node: 18.14.2
- npm: 9.5.0
Anything else?
It works in my project which uses version 5.12.1. But I can't update the package after it stopped working.
I already addressed this issue in #3909.