Skip to content

Conversation

@DiegoAndai
Copy link
Member

Fixes: #38949

Required changes to fix the issue:

  • Forward missing slotProps keys from Select's MenuProps to Menu. Only the paper key was passed to the Menu so the root one was missing.
  • The Menu's slots and slotProps type should be the same as the Popover, as they're forwarded.

@DiegoAndai DiegoAndai added scope: select Changes related to the select. typescript type: regression A bug, but worse, it used to behave as expected. labels Sep 26, 2023
@DiegoAndai DiegoAndai self-assigned this Sep 26, 2023
@DiegoAndai DiegoAndai changed the title [material-ui][Select] Fix slotProps forwarding [material-ui][Select] Fix MenuProps slotProps forwarding Sep 26, 2023
@DiegoAndai DiegoAndai added scope: menu Changes related to the menu. package: material-ui labels Sep 26, 2023
@mui-bot
Copy link

mui-bot commented Sep 26, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 2e91295

Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

👍

@DiegoAndai DiegoAndai merged commit 99a1b85 into mui:master Sep 27, 2023
@DiegoAndai DiegoAndai deleted the fix-select-backdrop-slot branch September 27, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: menu Changes related to the menu. scope: select Changes related to the select. type: regression A bug, but worse, it used to behave as expected. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Select] slotProps can't pass to backdrop component

4 participants