Skip to content

Commit

Permalink
fix: context menu not working (google#6399)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega authored Aug 31, 2022
1 parent 9775b51 commit 79051a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class Menu {
if (dom.hasClass(currentElement, 'blocklyMenuItem')) {
// Having found a menu item's div, locate that menu item in this menu.
for (let i = 0, menuItem; menuItem = this.menuItems_[i]; i++) {
if (menuItem.getElement() === elem) {
if (menuItem.getElement() === currentElement) {
return menuItem;
}
}
Expand Down

0 comments on commit 79051a6

Please sign in to comment.