Merge pull request #20740 from Snuffleupagus/tree-viewer-shift-toggle

Don't expand/collapse the entire outline when shift-clicking on the triangles (PR 20508 follow-up)
This commit is contained in:
Jonas Jenwald 2026-02-26 14:51:08 +01:00 committed by GitHub
commit 3ae6cdc7c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ class BaseTreeViewer {
target.classList.toggle("treeItemsHidden");
if (e.shiftKey) {
const shouldShowAll = !target.classList.contains("treeItemsHidden");
this._toggleTreeItem(this.container, shouldShowAll);
this._toggleTreeItem(target.parentNode, shouldShowAll);
}
});
}