react-jsonschema-form
react-jsonschema-form copied to clipboard
Passing custom props with cloneElement from custom ObjectFieldTemplate
Prerequisites
- [x] I have read the documentation;
- [x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- [x] Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.
Description
When using a custom ObjectFieldTemplate, I want to clone the properties to pass custom props to the chidlren. The problem is that the SchemaField do not pass added props to the children.
Steps to Reproduce
- Creating a custom ObjectFieldTemplate
- Cloning each properties content with custom props
- Rendering cloned properties
Expected behavior
Having the custom properties in the clones
Actual behavior
The custom properties are passed to the SchemaField, but not to SchemaFIeld children
Version
3.2.0
@MrDelik what about modifying your custom ObjectFieldTemplate
to insert these custom props into a copy of the uiSchema
object that IS guaranteed to be passed down to the widgets?
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.
This issue was closed because of lack of recent activity. Reopen if you still need assistance.