-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Setting component prop on Dialog will cause bug #33709
Comments
I am looking more into this issue, but the Dialog component relies on Although docs clearly state that all Props of the |
@ClassicDarkChocolate Are you saying that it used to work in v5.8.0? |
Yes, it works in 5.x~5.8.4 and breaks after 5.8.5 |
We also noticed this issue in 5.8.5. We are using the |
@adamransom Do you pass the Is this issue occurring only if the |
https://v5-0-6.mui.com/api/modal/
|
Thanks @ClassicDarkChocolate ! Looks like a bug to me. Styles should get applied to DialogRoot even if component prop is specified. Something to do with changes in #32901 . |
I believe the `component` prop was available before v5.8.5. We were setting this via the component prop on `Dialog` (as it passes props down to `Modal`).
…On Thu, 11 Aug 2022 at 08:35, Zeeshan Tamboli ***@***.***> wrote:
Thanks @ClassicDarkChocolate <https://github.com/ClassicDarkChocolate> !
—
Reply to this email directly, view it on GitHub
<#33709 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH7SWEAE2UXQY2BBFZSELTVYSUM5ANCNFSM55DWY5EA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've created a PR to fix it - #33934 |
Closing this as it got fixed in |
Duplicates
Latest version
Current behavior 😯
The default styles are not set on the DialogRoot if the
component
prop is specified in @mui/material@5.8.6.Expected behavior 🤔
The default styles are set on the DialogRoot if the
component
prop is specified just like in @mui/material@5.8.5.Steps to reproduce 🕹
https://codesandbox.io/s/sparkling-snow-l15vph?file=%2Fsrc%2FApp.tsx
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: