Skip to content

Commit

Permalink
🐛 Fixed: coudln't open some context menus
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 17, 2021
1 parent 4119768 commit 2859e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface/components/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ window.addEventListener('click', (ev: MouseEvent) => {
// Prevent throwing error when the element is no longer attached to the DOM
return
}
if (!eventTarget.parentElement.classList.contains('dropmenu')) {
if (!eventTarget.parentElement.classList.contains('dropmenu') && eventTarget.tagName != 'BUTTON') {
RunningConfig.emit('hideAllFloatingComps')
}
})
Expand Down

0 comments on commit 2859e1b

Please sign in to comment.