-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Popover] function for slotProps.paper
isn't working
#42310
Comments
slotProps.paper
isn't working
Thanks for the report, looks like we missed handling function for the slotProps.paper, e.g. I see https://github.com/mui/material-ui/blob/next/packages/mui-material/src/Popover/Popover.js#L128. @DiegoAndai can you please check this? |
Thanks for the report, @jedwards1211; I accepted it as a bug. |
Here's the PR for the fix #42369 |
Steps to reproduce
Link to live example: (required)
Steps:
slotProps.paper
) has a red backgroundslotProps.paper
) has a white backgroundCurrent behavior
The popover passed a function for
slotProps.paper
doesn't have the same appearance as the one with an object forslotProps.paper
Expected behavior
Both popovers have the same background color from
slotProps.paper
Context
I was trying to accommodate these changes in MUI in
material-ui-popup-state
, and a user reported this issue: jcoreio/material-ui-popup-state#134Your environment
npx @mui/envinfo
Search keywords: popover,slot-props
The text was updated successfully, but these errors were encountered: