MCPcopy Create free account
hub / github.com/DTStack/molecule / handleGroupClick

Function handleGroupClick

src/workbench/sidebar/explore/editorTree.tsx:150–157  ·  view source on GitHub ↗
(e, group: IEditorGroup)

Source from the content-addressed store, hash-verified

148
149 // click group title will open the first file in this group
150 const handleGroupClick = (e, group: IEditorGroup) => {
151 const { target } = e;
152 const firstFile = group.data?.[0];
153 if (target.nextElementSibling && firstFile) {
154 onSelect?.(firstFile.id!, group.id!);
155 target.nextElementSibling.focus();
156 }
157 };
158
159 const handleToolBarClick = (
160 e: React.MouseEvent<Element, MouseEvent>,

Callers 1

EditorTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected