mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Merge pull request #1803 from MrKinau/master
Fix: Menu won't close after deselecting it
This commit is contained in:
commit
4d0a5926c8
@ -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