[data grid] Grid doesn't scroll horizontally during column reorder #6236
Labels
bug 馃悰
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Reordering
Related to the data grid Reordering feature
regression
A bug, but worse
Duplicates
Latest version
Current behavior 馃槸
Grid doesn't scroll horizontally when trying to reorder the column outside of currently visible columns:
Screen.Recording.2022-09-21.at.14.27.17.mov
Expected behavior 馃
Grid scrolls horizontally when trying to reorder the column outside of currently visible columns:
Steps to reproduce 馃暪
Link to live example:
Steps:
Context 馃敠
Column reorder feature is only available in Pro and Premium plans.
There's
GridScrollArea
component that is supposed to handle the scrollmui-x/packages/grid/x-data-grid/src/components/GridScrollArea.tsx
Line 59 in 654866b
But it's only used in
DataGrid
component:mui-x/packages/grid/x-data-grid/src/components/DataGridColumnHeaders.tsx
Lines 22 to 27 in 654866b
Instead of being used in
DataGridPro
andDataGridPremium
components:mui-x/packages/grid/x-data-grid-pro/src/components/DataGridProColumnHeaders.tsx
Lines 186 to 197 in 654866b
The diff below should do the job:
Your environment 馃寧
npx @mui/envinfo
Order ID 馃挸 (optional)
No response
The text was updated successfully, but these errors were encountered: