Skip to content

[Select] Improve MenuProps.slotProps implementation #46612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli added scope: select Changes related to the select. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jul 28, 2025
@ZeeshanTamboli ZeeshanTamboli changed the title [Select] Improve MenuProps slotProps [Select] Improve MenuProps.slotProps implementation Jul 28, 2025
@mui-bot
Copy link

mui-bot commented Jul 28, 2025

Netlify deploy preview

https://deploy-preview-46612--material-ui.netlify.app/

Bundle size report

Bundle Parsed Size Gzip Size
@mui/material 🔺+105B(+0.02%) 🔺+31B(+0.02%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against f534325

};

const paperProps = {
...MenuProps.PaperProps,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have mergeSlotProps utility, can you check if it's possible to use that here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's the same reason as https://github.com/mui/material-ui/pull/44913/files#r1957728696, i.e to use the ownerState of Select not the Menu.

@ZeeshanTamboli ZeeshanTamboli requested a review from sai6855 July 28, 2025 07:59
@ZeeshanTamboli
Copy link
Member Author

@sai6855 I think you lost the approving privilege after core team removal from GitHub. I would need an approval from @siriwatknp.

@ZeeshanTamboli ZeeshanTamboli merged commit 7bcc397 into mui:master Jul 28, 2025
22 checks passed
@ZeeshanTamboli ZeeshanTamboli deleted the slect-improve-menuprops-slotProps branch July 28, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: select Changes related to the select. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants