feat(mobile): improve submenu triggering

This commit is contained in:
Elian Doran
2024-12-28 09:59:44 +02:00
parent 1eecf9a5c8
commit 01322c50ec
2 changed files with 9 additions and 7 deletions

View File

@@ -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();