-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
The class name of Table title have unexpected ForwardRef prefix. #437
Comments
Thank you for starting this issue @salmanorak, I'm also facing this issue. |
Since these components are using ForwardRef, is this expected behavior? Or should that not show up in the rendered class name when using ForwardRef? I'm asking because I do not know if this is expected or not when using ForwardRef. |
@oze4 This is not expected behaviour, you shouldn't see the ForwardRef in the class name, though technically it doesn't actually cause any issues as the class has the correct styles. export default withStyles(styles)(MTableToolbarRef); to export default withStyles(styles, { name: 'MTableToolbar' })(MTableToolbarRef); |
@ymor thank you so much for figuring this out! I will make the necessary changes and publish a new version. |
Published v4.3.14 |
thanks a lot @oze4 for your quick handling. |
@oze4
I have checked all markup but couldn't find any other instance except the Should I open another bug entry for this one? @oze4 |
Describe the bug
The wrappers of title, actions and etc. on the toolbar are having unexpected class names prefix as ForwardRef(MTableToolbarRef).
To Reproduce
Sandbox
Expected behavior
Instead of "ForwardRef(MTableToolbarRef)" it should have "MTableToolbar" prefix on each part's class name
Screenshots
![image](https://user-images.githubusercontent.com/41747037/146793169-fc7cd83a-a723-43f2-9a04-643fde031903.png)
Desktop :
Version:
@material-table/core : 4.3.11
@material-ui/core : 4.12.3
The text was updated successfully, but these errors were encountered: