Skip to content

Commit

Permalink
Update UIContextMenu.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jelveh committed Jun 16, 2024
1 parent 0fea080 commit 8ebf1ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/UI/UIContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ function UIContextMenu(options){
window.select_ctxmenu_item = function ($ctxmenu_item){
// remove active class from other items
$($ctxmenu_item).siblings('.context-menu-item').removeClass('context-menu-item-active');
// remove `has-open-context-menu-submenu` class from other items
$($ctxmenu_item).siblings('.context-menu-item').removeClass('has-open-context-menu-submenu');
// add active class to the selected item
$($ctxmenu_item).addClass('context-menu-item-active');
}
Expand Down

0 comments on commit 8ebf1ce

Please sign in to comment.