Skip to content

[DataGrid] Fix order of onClick prop on toolbar buttons #16356

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

Merged

Conversation

KenanYusuf
Copy link
Member

@KenanYusuf KenanYusuf commented Jan 27, 2025

Fixes #16355

onClick needs to come after {...buttonProps} to ensure the button behavior works as expected when an onClick prop is passed to the toolbar button.

@KenanYusuf KenanYusuf added scope: data grid Changes or issues related to the data grid product type: bug A bug or unintended behavior in the components. type: regression A bug that reintroduces previously resolved issues or breaks existing functionality. needs cherry-pick The PR should be auto-cherry-picked to a version branch after merge—add a version label as target v7.x labels Jan 27, 2025
@mui-bot
Copy link

mui-bot commented Jan 27, 2025

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

Generated by 🚫 dangerJS against 40f9aed

@KenanYusuf KenanYusuf requested a review from a team January 27, 2025 17:02
@KenanYusuf KenanYusuf merged commit a40079a into mui:master Jan 28, 2025
27 of 28 checks passed
@KenanYusuf KenanYusuf deleted the fix-toolbar-button-event-propagation branch January 28, 2025 08:48
Copy link

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

A-s-h-o-k pushed a commit to A-s-h-o-k/mui-x that referenced this pull request Feb 4, 2025
@oliviertassinari oliviertassinari removed the type: bug A bug or unintended behavior in the components. label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs cherry-pick The PR should be auto-cherry-picked to a version branch after merge—add a version label as target scope: data grid Changes or issues related to the data grid product type: regression A bug that reintroduces previously resolved issues or breaks existing functionality. v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] GridToolbarColumnsButton does not open popover when onClick is defined
4 participants