Skip to content

Commit 358cfad

Browse files
nickgrosAlgirdyz
authored andcommitted
[v6] Remove @rjsf/material-ui theme (Material UI v4) (rjsf-team#4010)
1 parent 1f03322 commit 358cfad

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ should change the heading of the (upcoming) version to include a major version b
384384

385385
- BREAKING CHANGE: Removed `@rjsf/material-ui` package. Material UI v4 (`@material-ui/core`) has been deprecated since September 2021. To use Material UI v5 (`@mui/core`) with RJSF, please use the `@rjsf/mui` theme instead.
386386

387+
## @rjsf/material-ui
388+
389+
- Removed `@rjsf/material-ui` package. Material UI v4 (`@material-ui/core`) has been deprecated since September 2021. To use Material UI v5 (`@mui/core`) with RJSF, please use the `@rjsf/mui` theme instead.
390+
387391
## @rjsf/react-bootstrap
388392

389393
- Added new package to replace `@rjsf/bootstrap-4`

packages/core/src/components/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,9 @@ export default class Form<
10351035
const registry = this.getRegistry();
10361036
const { SchemaField: _SchemaField } = registry.fields;
10371037
const { SubmitButton } = registry.templates.ButtonTemplates;
1038-
// The `semantic-ui` and `material-ui` themes have `_internalFormWrapper`s that take an `as` prop that is the
1038+
// The `semantic-ui` theme has an `_internalFormWrapper` that take an `as` prop that is the
10391039
// PropTypes.elementType to use for the inner tag, so we'll need to pass `tagName` along if it is provided.
1040-
// NOTE, the `as` prop is native to `semantic-ui` and is emulated in the `material-ui` theme
1040+
// NOTE, the `as` prop is native to `semantic-ui`
10411041
const as = _internalFormWrapper ? tagName : undefined;
10421042
const FormTag = _internalFormWrapper || tagName || 'form';
10431043

0 commit comments

Comments
 (0)