Fix hybrid menus not opening correctly

This commit is contained in:
JannisX11 2023-11-24 21:29:35 +01:00
parent ac1a2f7c7a
commit 5b684beb4a

View File

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