Open philer-jambit opened 2 years ago
Thanks for opening this issue. We'll keep an eye on https://github.com/mui/material-ui/issues/29677 to see which solution will be adopted.
I'm facing this exact issue when using GridToolbar
. It seems like it is related to GridToolbarContainer
. Any progress on this?
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
MUI: The
theme.spacing
array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define thetheme.spacing
as a number.
Hello, Any progress on this issue?
Same error on some x-charts components like BarChart, though the workaround from https://github.com/mui/material-ui/issues/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 π