[TreeView] If not all nodeId`s are different opening an item crashes the browser #10725
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
Steps to reproduce
https://codesandbox.io/s/jovial-stitch-zn4g9h?file=/src/demo.tsx:99-115
Current behavior
If the
TreeView
component containsTreeItem
components with the samenodeId
and an item is opened the browser hangs. Chrome completely hangs and can only be killed and Safari hangs but the window can can be refreshed.Expected behavior
A warning and not to "kill" the browser
Context
Just testing the TreeView component
Your environment
npx @mui/envinfo
Search keywords: treeview fatal error
The text was updated successfully, but these errors were encountered: