Open Bonfims opened 9 months ago
I noticied that a can avoid this by setting optional object type, like:
{
"extra-info": {
"title": "My title extra info",
"description": "My extra info description",
"type": ["null","object"]
}
}
thank you all
This actually is broken in all themes that aren't core
, antd
or bootstrap-4
. If this is important to you, we'd love to see a PR with a fix in it. Thanks!
Prerequisites
What theme are you using?
material-ui
Version
5.x
Current Behavior
On playground there is an "Null Fields" type example, which allows us to set
type="null"
on schema and set "title" and "description" fields to display on form to add extra information. However, the "title" field objects of type "null" are not rendered, and this issue can also be reproduced on playground too.Expected Behavior
The "title" field on objects with
type="null"
need to be rendered tooSteps To Reproduce
On playground https://rjsf-team.github.io/react-jsonschema-form/, with theme material-ui-5, on "Null Fields" example
Environment
Anything else?
No response