Skip to content

Commit 3ae6cdc

Browse files
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)
2 parents 17a4d2e + b07d14c commit 3ae6cdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/base_tree_viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class BaseTreeViewer {
131131
target.classList.toggle("treeItemsHidden");
132132
if (e.shiftKey) {
133133
const shouldShowAll = !target.classList.contains("treeItemsHidden");
134-
this._toggleTreeItem(this.container, shouldShowAll);
134+
this._toggleTreeItem(target.parentNode, shouldShowAll);
135135
}
136136
});
137137
}

0 commit comments

Comments
 (0)