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
[styles] withStyles + forwardRef + hoist issue #13776
Comments
@amaslakov I can't reproduce this. Could you provide more details on your platform? Does is still happen in private navigation? |
This comment has been minimized.
This comment has been minimized.
@bmakan The drawer problem on Firefox is tracked on a different issue. |
Yes. I see this in private mode in both Chrome and Firefox. I'm on Ubuntu 18.04 |
@eps1lon 🤽♂️ the issue I was facing with https://github.com/mridgway/hoist-non-react-statics is back. Chaining two higher order components that use |
@amaslakov Thank you for the repport 👌! |
The patch: const CustomTableCell = withStyles(theme => ({
head: {
backgroundColor: theme.palette.common.black,
color: theme.palette.common.white,
},
body: {
fontSize: 14,
},
-}))(TableCell);
+}))(props => <TableCell {...props} />); |
Can reproduce it on @oliviertassinari Edit: Deployed style and source style do not match: |
@eps1lon We have the following configuration |
But hnrs should never override. It only hoists if a property does not exist on the target. The behavior is different between dev and production environment. hnrs does not care about the environment. |
I can reproduce the issue in development and production. Should I create a minimal reproduction? |
@oliviertassinari That'd be nice. Although only so that I can understand it. #13818 should resolve hnrs issues for now. |
Custom table pagination and Spanning table look strange:
Steps to Reproduce 🕹
It can be found in the components demo section, Tabs.
I saw it when I cleared the cache. It reproduces in incognito mode.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: