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] Fix Tree View inside shadow root crashes #36225

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

NoFr1ends
Copy link
Contributor

Checks if the Node.getRootNode() function is available and use it in handleFocus to prevent a crash when running inside a shadow root.

Fixes #36224

@mui-bot
Copy link

mui-bot commented Feb 16, 2023

Netlify deploy preview

https://deploy-preview-36225--material-ui.netlify.app/

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against 7b10b2c

@zannager zannager added the package: lab Specific to @mui/lab label Feb 16, 2023
@zannager zannager requested a review from mnajdova February 16, 2023 14:34
@oliviertassinari oliviertassinari added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Feb 18, 2023
Checks if the Node.getRootNode() function is available and use it in handleFocus.

Fixes mui#36224
@NoFr1ends NoFr1ends force-pushed the fix-treeitem-shadow-root branch from 63eb02d to 7b10b2c Compare February 20, 2023 07:35
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ZeeshanTamboli ZeeshanTamboli changed the title [lab] Fix TreeItem inside shadow root [TreeView] Fix Tree View inside shadow root crashes Feb 21, 2023
@hbjORbj hbjORbj merged commit b1f7620 into mui:master Mar 6, 2023
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! package: lab Specific to @mui/lab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lab: TreeView inside Shadow Root crashes
6 participants