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] Update the default value for rowSelectionPropagation #15523

Merged
merged 8 commits into from
Nov 28, 2024

Conversation

MBilalShafi
Copy link
Member

@MBilalShafi MBilalShafi commented Nov 21, 2024

Closes #15485

TODO

  • Add to migration guide

Changelog

Breaking changes

  • The default value of the rowSelectionPropagation prop has been changed to { parents: true, descendants: true } which means that the selection will be propagated to the parents and descendants by default.
    To revert to the previous behavior, pass rowSelectionPropagation={{ parents: false, descendants: false }}.

@MBilalShafi MBilalShafi added breaking change component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature v8.x labels Nov 21, 2024
@mui-bot
Copy link

mui-bot commented Nov 21, 2024

@MBilalShafi MBilalShafi changed the title [DataGrid] Update the default behavior for rowSelectionPropagation [DataGrid] Update the default value for rowSelectionPropagation Nov 26, 2024
@MBilalShafi MBilalShafi marked this pull request as ready for review November 26, 2024 14:10
@MBilalShafi MBilalShafi requested review from flaviendelangle and a team November 26, 2024 14:10
@flaviendelangle
Copy link
Member

@joserodolfofreitas do you think we should do the same thing on the Tree View?

@MBilalShafi MBilalShafi merged commit 0645394 into mui:master Nov 28, 2024
18 checks passed
LukasTy pushed a commit to LukasTy/mui-x that referenced this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: data grid This is the name of the generic UI component, not the React module! feature: Selection Related to the data grid Selection feature v8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Change row selection propagation defaults
4 participants