There was an error while loading. Please reload this page.
2 parents bf9ea67 + e5df72a commit 28cdbe9Copy full SHA for 28cdbe9
2 files changed
.changeset/brown-pets-bake.md
@@ -0,0 +1,5 @@
1
+---
2
+'@openproject/primer-view-components': patch
3
4
+
5
+Fix a bug to avoid that two menus interfere with each other
app/components/primer/alpha/action_menu/action_menu_element.ts
@@ -360,7 +360,10 @@ export class ActionMenuElement extends HTMLElement {
360
// desirable
361
this.#focusZoneStack.pop(subMenu)
362
const item = this.#itemForSubMenu(subMenu)
363
- if (item) item.focus()
+ const openPopover = document.querySelector(':popover-open')
364
+ if (item && !openPopover) {
365
+ item.focus()
366
+ }
367
}
368
369
0 commit comments