Skip to content

Commit 4343960

Browse files
nickgrosantpaw
authored andcommitted
use inputProps for compatibility with MUI v5, fixes rjsf-team#4535 (rjsf-team#4563)
1 parent 27ea814 commit 4343960

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ should change the heading of the (upcoming) version to include a major version b
2626

2727
- Restricted the chakra-react-select peerDependency to <6.0.0, fixing [#4539](https://github.com/rjsf-team/react-jsonschema-form/issues/4539)
2828

29+
## @rjsf/mui
30+
31+
- Fixed issue in BaseInputTemplate where input props were passed to `slotProps.htmlInput`, which does not work in MUI v5.
32+
2933
## Dev / docs / playground
3034

3135
- Updated docs for ArrayFieldItemTemplate to include prop `onCopyIndexClick`, fixing [#4507](https://github.com/rjsf-team/react-jsonschema-form/issues/4507)

packages/mui/src/BaseInputTemplate/BaseInputTemplate.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ export default function BaseInputTemplate<
7676
autoFocus={autofocus}
7777
required={required}
7878
disabled={disabled || readonly}
79-
slotProps={{
80-
htmlInput: htmlInputProps,
81-
}}
79+
inputProps={htmlInputProps}
8280
{...rest}
8381
value={value || value === 0 ? value : ''}
8482
error={rawErrors.length > 0}

0 commit comments

Comments
 (0)