Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions apps/client/src/menus/context_menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,15 @@ class ContextMenu {
return false;
});

if (!this.isMobile) {
$item.on("mouseup", (e) =>{
$item.on("mouseup", (e) => {
// Prevent submenu from failing to expand on mobile
if (!this.isMobile || !("items" in item && item.items)) {
e.stopPropagation();
// Hide the content menu on mouse up to prevent the mouse event from propagating to the elements below.
this.hide();
return false;
});
}
}
});

if ("enabled" in item && item.enabled !== undefined && !item.enabled) {
$item.addClass("disabled");
Expand Down
2 changes: 1 addition & 1 deletion apps/client/src/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ body.desktop .dropdown-menu {
}

body.desktop .dropdown-menu:not(#context-menu-container) .dropdown-item,
body.desktop #context-menu-container .dropdown-item > span {
body #context-menu-container .dropdown-item > span {
display: flex;
align-items: center;
}
Expand Down