Skip to content

Commit

Permalink
Fix the issue with re-opening submenus using keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jelveh committed Jun 26, 2024
1 parent 8a763ea commit fbc02a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/UI/UIContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
row.pageY = mouseLocs[mouseLocs.length - 1].y;
}

if (row == activeRow) {
if (row == activeRow && !data?.keyboard) {
return;
}

Expand Down Expand Up @@ -603,7 +603,6 @@ function UIContextMenu(options){
// remove `has-open-context-menu-submenu` class from the parent menu item
$(e).removeClass('has-open-context-menu-submenu');
}

}
});

Expand Down

0 comments on commit fbc02a5

Please sign in to comment.