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 order of onClick prop on toolbar buttons #16356

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 component: data grid This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work regression A bug, but worse needs cherry-pick The PR should be cherry-picked to master after merge 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

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! needs cherry-pick The PR should be cherry-picked to master after merge regression A bug, but worse 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
3 participants