diff --git a/packages/mui-material/src/Select/Select.test.js b/packages/mui-material/src/Select/Select.test.js index 6b8aa8a23bfd6a..0ee8903cc2cd83 100644 --- a/packages/mui-material/src/Select/Select.test.js +++ b/packages/mui-material/src/Select/Select.test.js @@ -835,6 +835,24 @@ describe(' + Ten + , + ); + + const paper = getByTestId('paper'); + const selectButton = getByRole('button', { hidden: true }); + + expect(paper.style).to.have.property('minWidth', `${selectButton.clientWidth}px`); + }); }); describe('prop: SelectDisplayProps', () => { diff --git a/packages/mui-material/src/Select/SelectInput.js b/packages/mui-material/src/Select/SelectInput.js index ba51fc1925035a..72452dc1d88857 100644 --- a/packages/mui-material/src/Select/SelectInput.js +++ b/packages/mui-material/src/Select/SelectInput.js @@ -482,6 +482,11 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) { const classes = useUtilityClasses(ownerState); + const paperProps = { + ...MenuProps.PaperProps, + ...MenuProps.slotProps?.paper, + }; + return (