react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

MUI rendered is missing any control over the fields render. Other ren…

Open mikezerosix opened this issue 3 years ago • 1 comments

Other renders have 'className' variable to control the style of the forms fields. Toward this end I added 'fieldFlexWidth' uiSchema varaible to control the flex grid withs in MUI ObjectFieldTemplate.tsx instead of the hard coded '12'. If variable is not the the code defaults to '12' as before and code behaves exactly as before.

Reasons for making this change

Other renders have 'className' variable to control the style of the forms fields. MUI rendered has no way to control the style. And in order to be able to render form in multiple columns #2108 and have some responsiveness to UI. Change is minimal and non volatile. When not used it has no effect on the behavior and code defaults to previously hard coded value.

Checklist

  • [ ] I'm updating documentation
  • [x] I'm adding or updating code
    • [ ] I've added and/or updated tests
    • [ ] I've updated docs if needed
    • [x] I've updated the changelog with a description of the PR
  • [x] I'm adding a new feature
    • [ ] I've updated the playground with an example use of the feature

mikezerosix avatar Nov 08 '21 10:11 mikezerosix

Linked to issue :https://github.com/rjsf-team/react-jsonschema-form/issues/2108

mikezerosix avatar Nov 08 '21 11:11 mikezerosix

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.

stale[bot] avatar Dec 12 '23 02:12 stale[bot]

This issue was closed because of lack of recent activity. Reopen if you still need assistance.

stale[bot] avatar Jan 11 '24 16:01 stale[bot]