Skip to content

[tree view] Focus item sibling on unmount instead of the 1st item#21254

Merged
flaviendelangle merged 9 commits into
mui:masterfrom
flaviendelangle:item-focus-removal
Feb 19, 2026
Merged

[tree view] Focus item sibling on unmount instead of the 1st item#21254
flaviendelangle merged 9 commits into
mui:masterfrom
flaviendelangle:item-focus-removal

Conversation

@flaviendelangle
Copy link
Copy Markdown
Member

@flaviendelangle flaviendelangle commented Feb 9, 2026

Fixes #21159

@flaviendelangle flaviendelangle self-assigned this Feb 9, 2026
@flaviendelangle flaviendelangle added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. labels Feb 9, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Feb 9, 2026

Deploy preview: https://deploy-preview-21254--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 🔺+510B(+0.75%) 🔺+183B(+0.91%)
@mui/x-tree-view-pro 🔺+509B(+0.43%) 🔺+177B(+0.49%)

Details of bundle changes

Generated by 🚫 dangerJS against c1912a1

@flaviendelangle flaviendelangle marked this pull request as ready for review February 13, 2026 13:31
Copy link
Copy Markdown
Contributor

@noraleonte noraleonte left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for taking care of it! 🎉

@flaviendelangle flaviendelangle added needs cherry-pick The PR should be cherry-picked to master after merge. v8.x labels Feb 19, 2026
@flaviendelangle flaviendelangle merged commit a3348c9 into mui:master Feb 19, 2026
29 checks passed
@flaviendelangle flaviendelangle deleted the item-focus-removal branch February 19, 2026 07:19
@github-actions
Copy link
Copy Markdown
Contributor

Cherry-pick PRs will be created targeting branches: v8.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs cherry-pick The PR should be cherry-picked to master after merge. scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tree view] Deleting a tree item resets the scroll position

3 participants