Fix for multiple handlers on single list row (#182084)

Fix #97820
This commit is contained in:
Rob Lourens
2023-05-10 09:41:06 -07:00
committed by GitHub
parent de89c63acc
commit 67de6c1d53
+2 -2
View File
@@ -1394,14 +1394,14 @@ class TreeNodeListMouseController<T, TFilterData, TRef> extends MouseController<
}
if (node.collapsible) {
// Do not set this before calling a handler on the super class, because it will reject it as handled
e.browserEvent.isHandledByList = true;
const location = this.tree.getNodeLocation(node);
const recursive = e.browserEvent.altKey;
this.tree.setFocus([location]);
this.tree.toggleCollapsed(location, recursive);
if (expandOnlyOnTwistieClick && onTwistie) {
// Do not set this before calling a handler on the super class, because it will reject it as handled
e.browserEvent.isHandledByList = true;
return;
}
}