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

[docs] Tree View: check children, uncheck parents #13246

Closed
johnnyreilly opened this issue May 24, 2024 · 3 comments
Closed

[docs] Tree View: check children, uncheck parents #13246

johnnyreilly opened this issue May 24, 2024 · 3 comments
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists support: docs-feedback Feedback from documentation page

Comments

@johnnyreilly
Copy link

johnnyreilly commented May 24, 2024

Related page

https://mui.com/x/react-tree-view/rich-tree-view/selection/

Kind of issue

Missing information

Issue description

I'm not sure if this is a component issue or a docs issue. Essentially the treeview component has default behaviours which differ from that which you typically find in a treeview component. I'm speaking about node selection. I'm used to a treeview component that, when a parent node is selected, auto selects the child nodes underneath. And by turn, when nodes are deselected, the parent nodes get deselected.

I've found out that it's possible to implement this manually and have blogged about it here:

https://johnnyreilly.com/mui-react-tree-view-check-children-uncheck-parents

Would it be useful to add this directly to the documentation, for those that might not happen on my blog? I'd be happy to submit a PR. Or if you're happy linking to my blog, please feel free to.

Context

See above

Search keywords: Treeview

@johnnyreilly johnnyreilly added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels May 24, 2024
@oliviertassinari
Copy link
Member

oliviertassinari commented May 25, 2024

This looks like a duplicate of #12883 to me. As I understand things, current behavior isn't final, we did a first pass just to get something out but it will change.

@oliviertassinari oliviertassinari added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label May 25, 2024
@michelengelen
Copy link
Member

Thanks @johnnyreilly for taking the time and opening the issue here.
The article was a great read! Thanks for sharing.

As @oliviertassinari mentioned this is a duplicate of #12883 ... so I am closing this one in favor of it. 👍🏼

Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@johnnyreilly: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@michelengelen michelengelen added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists support: docs-feedback Feedback from documentation page
Projects
None yet
Development

No branches or pull requests

3 participants