Open rap1ds opened 2 years ago
@rap1ds WOW! That is a really interesting issue. It turns out that the Any Of with Custom Field
example has a react component embedded in the uiSchema
but the editor code doesn't know how to deal with it, therefore showing an empty uiSchema
, which is saved into state. When you switch back the component is lost. We'll have to figure out how to fix it, eventually. Thanks!
I've also noticed that the "Any Of with Custom Field" example is weirdly broken:
The display on the right is incorrect. If you copy the schema, click on the "Simple" example, and paste the JSON, it will work properly:
@Nezteb thanks for pointing that out! The custom field is what renders the latitude and longitude.
This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.
Prerequisites
What theme are you using?
other
Version
5.x
Current Behavior
In Playground, when you pick Any Of with Custom Field example, you see:
See screenshot
Expected Behavior
Steps To Reproduce
Expected: UISchema with custom field, rendered output is the custom field, not dropdown with two options
Actual: UISchema is empty, rendered output is dropdown with two options
If I pick another example, I can see the custom field correctly rendered, but UI Schema is still empty. Steps:
Expected: UISchema with custom field, rendered output is the custom field, not dropdown of two options
Actual: UISchema is empty, rendered output is the custom field, not dropdown of two options
Environment
Anything else?