Skip to content

Commit

Permalink
prevent show menu on folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-0331 committed Aug 7, 2024
1 parent 07d65ce commit 59700b2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,11 @@ class Records extends Component {
};

onFileNameContextMenu = (event, cell) => {
const record = this.props.recordGetter(cell.rowIdx);
if (record._is_dir) {
return;
}

this.baseURI = event.target.baseURI;
this.setState({ selectedPosition: cell });
this.handleContextMenu(event, METADATA_RECORD_CONTEXT_MENU, this.getMenuList());
Expand Down

0 comments on commit 59700b2

Please sign in to comment.