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

Function handleOnMenuClick

src/workbench/editor/group.tsx:48–51  ·  view source on GitHub ↗
(e: React.MouseEvent, item)

Source from the content-addressed store, hash-verified

46
47 const handleTabContextMenu = (e: React.MouseEvent, tabItem) => {
48 const handleOnMenuClick = (e: React.MouseEvent, item) => {
49 onClickContextMenu?.(e, item, tabItem);
50 contextView.hide();
51 };
52
53 contextView?.show(getEventPosition(e), () => (
54 <Menu data={menu} onClick={handleOnMenuClick} />

Callers

nothing calls this directly

Calls 1

hideMethod · 0.80

Tested by

no test coverage detected