mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
Update UIContextMenu.js
This commit is contained in:
parent
0fea080ba9
commit
8ebf1cec3f
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user