Skip to content
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] Fix last separator not being hidden when grid is scrollable #15543

Conversation

KenanYusuf
Copy link
Member

Fixes #15529

The isLastColumn value was not always correct, depending on the columns in view. This simplifies the check so that it only takes into account whether the column group is the last in the row.

@KenanYusuf KenanYusuf added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Column groups Related to the data grid Column groups feature labels Nov 21, 2024
@mui-bot
Copy link

mui-bot commented Nov 21, 2024

Deploy preview: https://deploy-preview-15543--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 36fa19f

@KenanYusuf KenanYusuf requested a review from a team November 21, 2024 16:24
Copy link
Member

@cherniavskii cherniavskii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this PR be cherry-picked?

@KenanYusuf
Copy link
Member Author

@cherniavskii yes, thanks for the reminder 😅

@KenanYusuf KenanYusuf added needs cherry-pick The PR should be cherry-picked to master after merge v7.x labels Nov 22, 2024
@KenanYusuf KenanYusuf merged commit 1458aa3 into mui:master Nov 22, 2024
22 checks passed
@KenanYusuf KenanYusuf deleted the fix-last-column-group-header-separator-visibility branch November 22, 2024 08:39
Copy link

Cherry-pick PRs will be created targeting branches: v7.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Column groups Related to the data grid Column groups feature needs cherry-pick The PR should be cherry-picked to master after merge v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Last separator in column group headers not hidden
3 participants