-
-
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
[Dialog] Theme not updating on muiTheme change #4373
Comments
Hi guys, Original issue may be related to the way layer is rendered. However I was able to find workaround which worked fine for me. For now I am using monkey patch like this:
If dialog was opened before theme change with this patch, changes will be reflected only after dialog reopening. |
The core issue seems to be this one: facebook/react#6599. Could we rather fill the gap by bypassing the context with a property where it's needed? |
@oliviertassinari yes I agree with you on that but right now that issue is far from fixed, can we have the workaround in use right now? We could also use props in lieu but I'm not sure exactly what you have in mind. Can you comment on relevant parts of the pr? I'll update it with your suggestions |
@puranjayjain It was simpler for me to submit a fix. You can have a look at #4548. |
Thank you so much I tried to solve it the entire day! |
Problem description
It is not changed for the dialog.
Every other component's theme is updated (as discussed in [List] [Listitem] Theme not updating on muiTheme change #4362).
Steps to reproduce
<Dialog />
Note: I also tried forceUpdate to update it but it doesn't update to the new state
Versions
The text was updated successfully, but these errors were encountered: