You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Suppose I have 2 checkboxes (A and B). Upon checked of B checkbox, it will show another list of checkboxes. Each of these checkbox will show a new section of the form and checking multiple checkboxes will show multiple sections of the form.
The problem I'm facing now is that the second list of checkboxes is not responding to the schema dependencies.
Update 1: I have updated the schema and the interface is working as expected. But I keep getting an error in the browser console could not merge subschemas in allOf: Error: No resolver found for key const. You can provide a resolver for this keyword in the options, or provide a default resolver.
Every keystroke and backspace will generate the same error as well which accumulate to more than a thousand errors easily.
I checked #2625 thread. The playground links in this thread have the same error as well. #2811 seems to be the same issue as me.
Update 2: Tried adding another "Request B - Section C", the form generate this error ignoring oneOf in dependencies because there isn't exactly one subschema that is valid and is not displaying according to the checkboxes. Added the following logic for each pemutations. "Request B": { "contains": { "const": ["Section A", "Section B"] } "not": { "contains": { "const": ["Section C"] } } }
@Git-mind We recently fixed a bug with allOf merges in 5.0.0-beta.15 and it appears that it may have fixed all your problems. Can you confirm?
Based on the previous Playground link, I can confirm that the issue has been solved. There is no error in the console. Previously, there are same errors in console using the playground as well. I just tested it out and is working as expected. Thank you!
Prerequisites
What theme are you using?
material-ui
What is your question?
Description
Suppose I have 2 checkboxes (A and B). Upon checked of B checkbox, it will show another list of checkboxes. Each of these checkbox will show a new section of the form and checking multiple checkboxes will show multiple sections of the form.
The problem I'm facing now is that the second list of checkboxes is not responding to the schema dependencies.
I followed #2625 thread.
Update 1: I have updated the schema and the interface is working as expected. But I keep getting an error in the browser console
could not merge subschemas in allOf: Error: No resolver found for key const. You can provide a resolver for this keyword in the options, or provide a default resolver.
Every keystroke and backspace will generate the same error as well which accumulate to more than a thousand errors easily.
I checked #2625 thread. The playground links in this thread have the same error as well.
#2811 seems to be the same issue as me.
Update 2: Tried adding another "Request B - Section C", the form generate this error
ignoring oneOf in dependencies because there isn't exactly one subschema that is valid
and is not displaying according to the checkboxes. Added the following logic for each pemutations."Request B": { "contains": { "const": ["Section A", "Section B"] } "not": { "contains": { "const": ["Section C"] } } }
Added schema code in
Playground Link
The text was updated successfully, but these errors were encountered: