Skip to content

Commit

Permalink
fix: fix click connot trigger context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Jul 9, 2024
1 parent 8180e57 commit 387e3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/g6/src/plugins/contextmenu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ export class Contextmenu extends BasePlugin<ContextmenuOptions> {
if (event.target.className.includes('g6-contextmenu-li')) {
const value = event.target.getAttribute('value') as string;
onClick?.(value, event.target);
this.hide();
}
}
this.hide();
};
}

0 comments on commit 387e3d3

Please sign in to comment.