-
-
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
[data grid] Column header get stuck with dragging styles #14678
Comments
You have created a support request under the "Priority Support" terms, which is a paid add-on to MUI X Premium ⏰. Please validate your support key using the link below: https://tools-public.mui.com/prod/pages/jyhs86t?repo=mui-x&issueId=14678 Do not share your support key in this issue! Priority Support is only provided to verified customers. Once you have verified your support key, we will remove the |
Hi,
And I think abortion of event in this case is bound to happen and I don't see anything that can be done about it. |
Here you can see improved behavior: |
Thanks for opening a PR @k-rajat19... I just assigned reviewers and triaged it. Should be picked up soon! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @rodolffoteles! How was your experience with our support team? |
The problem in depth
Hi,
When dragging columns to perform the column reorder, sometimes the column header get stuck in the dragging state. The class
MuiDataGrid-columnHeader--dragging
is not removed even though thecolumnHeaderDragEnd
event is emitted.The most stable way I have to reproduce this is clicking and dragging on the edge of the menu icon button. The drag is suddenly aborted, even though I do not actually release the click, and the class is not removed.
Demo:
Reproducible on example of the column ordering docs.
Steps:
1 - Click and drag the edge of the menu icon button on header
2 - See stuck header styles
Recording:
Video:
https://github.com/user-attachments/assets/8edcf50b-0289-4dea-9768-a0819d43d9dc
Gif:
![Reorder](https://private-user-images.githubusercontent.com/30675058/369127886-734925df-6c61-4046-ba0a-a5e322322aea.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTgzODQsIm5iZiI6MTczOTQ5ODA4NCwicGF0aCI6Ii8zMDY3NTA1OC8zNjkxMjc4ODYtNzM0OTI1ZGYtNmM2MS00MDQ2LWJhMGEtYTVlMzIyMzIyYWVhLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDAxNTQ0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyODA5NTY0NmI2YTZkY2YxZWIwODAyNzNlMDQyZGMzNDBiM2RhYjg3YWM3MzU0ZWViMDUwZjhlNWU2M2NjZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CDad0o_S98Vhbli-q1SCWXJENxIZUFt9L077DwVIhwk)
Your environment
`npx @mui/envinfo`
System:
OS: macOS 12.7.3
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
pnpm: 8.15.1 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
Browsers:
Chrome: 128.0.6613.138
Edge: 128.0.2739.79
Safari: 15.6.1
npmPackages:
@emotion/react: ^11.13.3 => 11.13.3
@emotion/styled: ^11.13.0 => 11.13.0
@mui/core-downloads-tracker: 6.1.1
@mui/icons-material: 6.0.2
@mui/material: ^6.1.1 => 6.1.1
@mui/private-theming: 6.1.1
@mui/styled-engine: 6.1.1
@mui/system: 6.1.1
@mui/types: 7.2.17
@mui/utils: 6.1.1
@mui/x-data-grid: 7.17.0
@mui/x-data-grid-generator: ^7.17.0 => 7.17.0
@mui/x-data-grid-premium: ^7.17.0 => 7.17.0
@mui/x-data-grid-pro: 7.17.0
@mui/x-internals: 7.17.0
@mui/x-license: 7.17.0
@types/react: ^18 => 18.3.5
react: ^18 => 18.3.1
react-dom: ^18 => 18.3.1
typescript: ^5 => 5.5.4
Search keywords: data grid, column ordering
The text was updated successfully, but these errors were encountered: