[DataGridPro V6] Joy UI and Material together breaks column headers #10430
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
plan: Pro
Impact at least one Pro user
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/ngjcsh. It is a fork of the Using Joy UI and Material UI together example.
Steps:
Current behavior 😯
I think the headers are moving to the left instead of moving to the right. The
translate3d
offset of theMuiDataGrid-columnHeadersInner
div should be the opposite number.Enregistrement.de.l.ecran.2023-09-22.a.10.10.14.mov
The offset is wrong because
theme.direction
inuseGridColumnHeaders.tsx
at line 160 returnsundefined
instead ofltr
.I also noticed that
theme.direction
returnsltr
if I log it from thegrid.tsx
file.Should this issue be opened on the mui/material-ui repository? 🤷♂️
Expected behavior 🤔
The column headers should move from left to right.
Context 🔦
I migrated to DataGridPremium v6 and started to have those issues. V5 was working fine with the same configuration.
Your environment 🌎
npx @mui/envinfo
I am using Chrome 116.0.5845.187.
Order ID or Support key 💳 (optional)
75174
The text was updated successfully, but these errors were encountered: