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 13:00:06 +01:00
parent 17a4d2e123
commit b07d14c88c

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);
}
});
}