Fix hybrid menu mouse hover issue

This commit is contained in:
JannisX11 2025-03-31 22:32:50 +02:00
parent 42a6f27d44
commit db22ff1876

View File

@ -74,7 +74,14 @@ export class Menu {
}
}
hover(node, event, expand) {
if (node.classList.contains('focused') && !expand) return;
console.trace('HOV', node, event ,expand)
if (node.classList.contains('focused') && !expand) {
if (node.classList.contains('hybrid_parent')) {
node.classList.remove('opened');
} else {
return;
}
}
if (event) event.stopPropagation()
$(open_menu.node).find('li.focused').removeClass('focused')
$(open_menu.node).find('li.opened').removeClass('opened')