Skip to content

Commit 3b54a43

Browse files
nickgroszfarhad
authored andcommitted
[v6] Remove @rjsf/material-ui theme (Material UI v4) (rjsf-team#4010)
1 parent 7e11b8d commit 3b54a43

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
@@ -225,6 +225,10 @@ should change the heading of the (upcoming) version to include a major version b
225225

226226
- 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.
227227

228+
## @rjsf/material-ui
229+
230+
- 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.
231+
228232
## @rjsf/react-bootstrap
229233

230234
- 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
@@ -1034,9 +1034,9 @@ export default class Form<
10341034
const registry = this.getRegistry();
10351035
const { SchemaField: _SchemaField } = registry.fields;
10361036
const { SubmitButton } = registry.templates.ButtonTemplates;
1037-
// The `semantic-ui` and `material-ui` themes have `_internalFormWrapper`s that take an `as` prop that is the
1037+
// The `semantic-ui` theme has an `_internalFormWrapper` that take an `as` prop that is the
10381038
// PropTypes.elementType to use for the inner tag, so we'll need to pass `tagName` along if it is provided.
1039-
// NOTE, the `as` prop is native to `semantic-ui` and is emulated in the `material-ui` theme
1039+
// NOTE, the `as` prop is native to `semantic-ui`
10401040
const as = _internalFormWrapper ? tagName : undefined;
10411041
const FormTag = _internalFormWrapper || tagName || 'form';
10421042

0 commit comments

Comments
 (0)