Closed pongsakornsemsuwan closed 7 years ago
If that can help, I'm using the following workaround on my project:
// Fix an issue with Material-UI and prefixes
const prepareStyles = muiTheme.prepareStyles;
muiTheme.prepareStyles = (style) => {
style = prepareStyles(style);
if (typeof style.display === 'object') {
style.display = style.display.join(';display:');
}
return style;
};
This issue should be addressed once #4066 is done.
Having the same issue. Thanks for the tip @oliviertassinari - your prepareStyles
hack works.
UPDATE: seems to be working only on full page refresh. When going back in history the display is invalid.
Anyone is experiencing the same problem?
We are encountering the problem with the DatePicker on different Android devices where display:flex
is replaced and not working anymore.
For us the hack does not work.
This issue is a known limitation of the inline-style approach. We can not longer prefix for different rendering engines since React v0.15. They changed the style injection method in the DOM.
I don't think we will find any solution for the master
branch.
next
branch.We are using a new CSS-in-JSS styling solution that addresses this issue. I'm closing it.
Also, #5931 helps to mitigate the impact of the inline-style solution.
Problem description
I'm trying out Badge component and run into an 'invalid property value' error for CSS for Badge's display property when userAgent is 'all'
cause : when userAgent is set to 'all', Material UI transforms
display:flex
intodisplay:-webkit-box,-moz-box,-ms-flexbox,-webkit-flex,flex
Steps to reproduce
(1) set userAgent property in muiTheme
userAgent: 'all'
(2) add a Badge compponent to your siteVersions