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
[TreeView] Improve customization of tree item #22846
[TreeView] Improve customization of tree item #22846
Conversation
@material-ui/core: parsed: 0.00% 😍, gzip: -0.09% 😍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding #22024, I would be in favor of changing the default to match the expectation of the developer that has open the issue. Then, we could wait and see if somebody wants to have a click flip both the expanded and selection state. From what I understand, with the controlled mode, both behavior can be implemented.
Regarding the new customization API. It looks interesting, a mix between a component shell and a full hook.
I think we should tackle this in a separate PR if we do. |
Closes #22024
Breaking Changes:
Removes onLabelClick and onIconClick. (PR, #19953) a custom ContentComponent should be used instead.