mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix hybrid menus not opening correctly
This commit is contained in:
parent
ac1a2f7c7a
commit
5b684beb4a
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user