[tree view] onBlur event causes TreeView performance issues #11518
Labels
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
Steps to reproduce
If the TreeItem contains a text input box, it will cause a lot of unnecessary re-rendering.
The useTreeViewFocus.ts file contains settings for monitoring the focus and blur events of the main container. When the focus and blur events occur, the focusedNodeId status change will be set. Once there are a large number of form elements in the treeitem, the entire tree will be frequently re-rendered.
`
Don't forget to mention which browser you used.
Output from
npx @mui/envinfo
goes here.The text was updated successfully, but these errors were encountered: