Fix issues with using nested menus on touch screens

This commit is contained in:
JannisX11 2023-10-19 20:38:43 +02:00
parent 182bdc7171
commit 89f5966a04

View File

@ -62,6 +62,7 @@ class Menu {
this.onClose = this.options.onClose;
}
hover(node, event, expand) {
if (node.classList.contains('focused')) return;
if (event) event.stopPropagation()
$(open_menu.node).find('li.focused').removeClass('focused')
$(open_menu.node).find('li.opened').removeClass('opened')