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

Function handleMenuClick

src/workbench/sidebar/explore/folderTree.tsx:121–127  ·  view source on GitHub ↗
(
        item: IMenuItemProps,
        data: IFolderTreeNodeProps
    )

Source from the content-addressed store, hash-verified

119 };
120
121 const handleMenuClick = (
122 item: IMenuItemProps,
123 data: IFolderTreeNodeProps
124 ) => {
125 onClickContextMenu?.(item, data);
126 contextView?.hide();
127 };
128
129 const handleRightClick: ITreeProps['onRightClick'] = (event, data) => {
130 if ((event.target as HTMLElement).nodeName !== 'INPUT') {

Callers 1

handleRightClickFunction · 0.85

Calls 1

hideMethod · 0.80

Tested by

no test coverage detected