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

[TreeView] useTreeItem2Utils misses context and breaks demo on stackblitz #12715

Closed
joserodolfofreitas opened this issue Apr 9, 2024 · 1 comment · Fixed by #12716
Closed
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation

Comments

@joserodolfofreitas
Copy link
Member

joserodolfofreitas commented Apr 9, 2024

Steps to reproduce

Link to live example: (required)

Steps:

  1. go to https://mui.com/x/react-tree-view/rich-tree-view/customization/#limit-expansion-to-icon-container
  2. open the example on stackblitz (codesandbox is crashing)
image

Isolated reproduction case

The following reproduction case isolates the problem on useTreeItem2Utils
https://stackblitz.com/edit/react-vrebgu?file=Demo.tsx

Current behavior

When using useTreeItem2Utils the component behaves like the customTreeItem doesn't have proper contexts.

Expected behavior

Using useTreeItem2Utils should not cause a different behavior.

Search keywords: treeItem useTreeItem2Utils

@joserodolfofreitas joserodolfofreitas added status: waiting for maintainer These issues haven't been looked at yet by a maintainer bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 9, 2024
@joserodolfofreitas joserodolfofreitas changed the title [TreeView] useTreeItem2Utils breaks demo on stackblitz [TreeView] useTreeItem2Utils misses context and breaks demo on stackblitz Apr 9, 2024
@joserodolfofreitas joserodolfofreitas added the docs Improvements or additions to the documentation label Apr 9, 2024
Copy link

github-actions bot commented Apr 9, 2024

⚠️ 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.

@joserodolfofreitas: 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.

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: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant