Skip to content

Commit 67de6c1

Browse files
authored
Fix for multiple handlers on single list row (microsoft#182084)
Fix microsoft#97820
1 parent de89c63 commit 67de6c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/base/browser/ui/tree/abstractTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,14 +1394,14 @@ class TreeNodeListMouseController<T, TFilterData, TRef> extends MouseController<
13941394
}
13951395

13961396
if (node.collapsible) {
1397-
// Do not set this before calling a handler on the super class, because it will reject it as handled
1398-
e.browserEvent.isHandledByList = true;
13991397
const location = this.tree.getNodeLocation(node);
14001398
const recursive = e.browserEvent.altKey;
14011399
this.tree.setFocus([location]);
14021400
this.tree.toggleCollapsed(location, recursive);
14031401

14041402
if (expandOnlyOnTwistieClick && onTwistie) {
1403+
// Do not set this before calling a handler on the super class, because it will reject it as handled
1404+
e.browserEvent.isHandledByList = true;
14051405
return;
14061406
}
14071407
}

0 commit comments

Comments
 (0)