diff --git a/CHANGELOG.md b/CHANGELOG.md index 601b861aac..c52a964bda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,10 @@ should change the heading of the (upcoming) version to include a major version b - Restricted the chakra-react-select peerDependency to <6.0.0, fixing [#4539](https://github.com/rjsf-team/react-jsonschema-form/issues/4539) +## @rjsf/mui + +- Fixed issue in BaseInputTemplate where input props were passed to `slotProps.htmlInput`, which does not work in MUI v5. + ## Dev / docs / playground - Updated docs for ArrayFieldItemTemplate to include prop `onCopyIndexClick`, fixing [#4507](https://github.com/rjsf-team/react-jsonschema-form/issues/4507) diff --git a/packages/mui/src/BaseInputTemplate/BaseInputTemplate.tsx b/packages/mui/src/BaseInputTemplate/BaseInputTemplate.tsx index 4eb8fea899..137909fd6f 100644 --- a/packages/mui/src/BaseInputTemplate/BaseInputTemplate.tsx +++ b/packages/mui/src/BaseInputTemplate/BaseInputTemplate.tsx @@ -76,9 +76,7 @@ export default function BaseInputTemplate< autoFocus={autofocus} required={required} disabled={disabled || readonly} - slotProps={{ - htmlInput: htmlInputProps, - }} + inputProps={htmlInputProps} {...rest} value={value || value === 0 ? value : ''} error={rawErrors.length > 0}