mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
fix close menu after clicking on selected menu bar item
This commit is contained in:
parent
72e23fc235
commit
af3cfbdc55
@ -15,9 +15,7 @@ class BarMenu extends Menu {
|
||||
this.label = Interface.createElement('li', {class: 'menu_bar_point'}, this.name);
|
||||
this.label.addEventListener('click', (event) => {
|
||||
if (open_menu === scope) {
|
||||
if (event instanceof PointerEvent == false) {
|
||||
scope.hide()
|
||||
}
|
||||
scope.hide()
|
||||
} else {
|
||||
scope.open()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user