mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
feat(mobile): improve submenu triggering
This commit is contained in:
@@ -168,9 +168,8 @@ class ContextMenu {
|
||||
}
|
||||
|
||||
if (this.isMobile && "items" in item && item.items) {
|
||||
const $target = $(e.target);
|
||||
$target
|
||||
.parents(".dropdown-item")
|
||||
$(e.target)
|
||||
.closest(".dropdown-item")
|
||||
.find("ul.dropdown-menu")
|
||||
.toggleClass("show");
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user