-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot change property value with liveOmit and omitExtraData for arrays of objects and conditionality #4109
Comments
@heath-freenome Thank you for the response. I did notice that turning off |
@anya92 I started out not being very familiar with the codebase either. Most of the code you want to look at is in the |
@heath-freenome I checked the changes in the package and I'm pretty sure my schema stopped working after updating But even if I manually got rid of {
"title": "Schema",
"type": "object",
"properties": {
"array_of_objects": {
"title": "Array of Objects",
"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"
]
}
}
}
} The issue still exists (playground). You may notice that the Do you have any idea what is causing this behavior and where to fix it? |
Hi @heath-freenome, I'm also having issues with react-jsonschema-form/packages/core/src/components/Form.tsx Lines 709 to 712 in e7b8277
If needed, I am happy to help out to implement a fix. |
Has there been any update to fix this issue yet? |
@helen-m-lin How goes the fix we discussed? |
Sorry, I haven't had the chance to work on it! Thank you for the reminder. I will work on the fix this later this week. |
Hi @helen-m-lin and @heath-freenome. First of all, I would like to thank you for your work and recent PR to address this issue. However, I wanted to let you know that the problem at the playground still exists. It seems that the problem is not related to |
Prerequisites
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:
Expected Behavior
It should be possible to change the
otherProperty
value.Steps To Reproduce
liveOmit
andomitExtraData
are already turned on,liveValidation
is also turned on to see that the condition is validOther Property
- nothing happensEnvironment
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.
The text was updated successfully, but these errors were encountered: