Skip to content

Commit 6ebd5ee

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

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

444444
- 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.
445445

446+
## @rjsf/material-ui
447+
448+
- 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.
449+
446450
## @rjsf/react-bootstrap
447451

448452
- 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
@@ -1052,9 +1052,9 @@ export default class Form<
10521052
const registry = this.getRegistry();
10531053
const { SchemaField: _SchemaField } = registry.fields;
10541054
const { SubmitButton } = registry.templates.ButtonTemplates;
1055-
// The `semantic-ui` and `material-ui` themes have `_internalFormWrapper`s that take an `as` prop that is the
1055+
// The `semantic-ui` theme has an `_internalFormWrapper` that take an `as` prop that is the
10561056
// PropTypes.elementType to use for the inner tag, so we'll need to pass `tagName` along if it is provided.
1057-
// NOTE, the `as` prop is native to `semantic-ui` and is emulated in the `material-ui` theme
1057+
// NOTE, the `as` prop is native to `semantic-ui`
10581058
const as = _internalFormWrapper ? tagName : undefined;
10591059
const FormTag = _internalFormWrapper || tagName || 'form';
10601060

0 commit comments

Comments
 (0)