-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Using an array for theme.spacing causes error spam in console ("The theme.spacing
array type cannot be combined with non integer values")
#5454
Comments
Thanks for opening this issue. We'll keep an eye on mui/material-ui#29677 to see which solution will be adopted. |
I'm facing this exact issue when using |
I'm facing this exact issue as well |
started reproducing after upgrade to v7 |
Getting the same error message with @mui/material version ^5.15.15
|
Hello, |
Same error on some x-charts components like BarChart, though the workaround from mui/material-ui#29677 makes it usable. |
Also facing this issue |
Duplicates
Latest version
Current behavior 😯
A couple of components in the
@mui/x-data-grid
are relying on fractional values fortheme.spacing
, resulting in the following error to get output repeatedly into the console:The same issue was previously fixed for
Divider
in mui/material-ui#29479 and is more generally being discussed in mui/material-ui#29677. Until mui/material-ui#29677 has found a decision it would be welcome (and spare developers some bug tracking) to have the same fix in place that was done for mui/material-ui#29479.A quick search shows the following components are calling
theme.spacing
with fractional values:GridToolbarContainer
GridFilterForm
GridPanelFooter
GridToolbarFilterButton
GridColumnsPanel
GridToolbarQuickFilter
Expected behavior 🤔
Don't cause errors.
Steps to reproduce 🕹
Context 🔦
We're using data grid with a columns selection button. The error in the console has caused some amount of bug searching until we figured out that the issue is not in our own code but in the library code.
Your environment 🌎
The text was updated successfully, but these errors were encountered: