diff --git a/frontend/src/components/dirent-list-view/dirent-list-item.js b/frontend/src/components/dirent-list-view/dirent-list-item.js index e36380545e..3ba49c636c 100644 --- a/frontend/src/components/dirent-list-view/dirent-list-item.js +++ b/frontend/src/components/dirent-list-view/dirent-list-item.js @@ -173,7 +173,7 @@ class DirentListItem extends React.Component { this.setState({isShareDialogShow: !this.state.isShareDialogShow}); } - onMenuItemClick = (operation, opDirent, event) => { + onMenuItemClick = (operation, event) => { switch(operation) { case 'Download': this.onItemDownload(event); diff --git a/frontend/src/components/dropdown-menu/item-dropdown-menu.js b/frontend/src/components/dropdown-menu/item-dropdown-menu.js index eb471bb0b6..0a688c7ec5 100644 --- a/frontend/src/components/dropdown-menu/item-dropdown-menu.js +++ b/frontend/src/components/dropdown-menu/item-dropdown-menu.js @@ -96,7 +96,7 @@ class ItemDropDownMenu extends React.Component { onMenuItemClick = (event) => { let operation = event.target.dataset.toggle; let opItem = this.props.opItem; - this.props.onMenuItemClick(operation, opItem, event); + this.props.onMenuItemClick(operation, event, opItem); } render() { diff --git a/frontend/src/components/tree-view/tree-node-view.js b/frontend/src/components/tree-view/tree-node-view.js index 9d4f783093..3c196c0111 100644 --- a/frontend/src/components/tree-view/tree-node-view.js +++ b/frontend/src/components/tree-view/tree-node-view.js @@ -118,7 +118,7 @@ class TreeNodeView extends React.Component { this.props.onUnfreezedItem(); } - onMenuItemClick = (operation, node) => { + onMenuItemClick = (operation, event, node) => { this.props.onMenuItemClick(operation, node); } @@ -200,7 +200,7 @@ class TreeNodeView extends React.Component { onNodeCollapse={this.props.onNodeCollapse} onNodeExpanded={this.props.onNodeExpanded} onFreezedItem={this.props.onFreezedItem} - onMenuItemClick={this.onMenuItemClick} + onMenuItemClick={this.props.onMenuItemClick} onUnfreezedItem={this.onUnfreezedItem} onNodeChanged={this.props.onNodeChanged} registerHandlers={this.props.registerHandlers}