openproject-primer_view_components 0.69.3 → 0.69.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -379,8 +379,10 @@ _ActionMenuElement_handleToggleEvent = function _ActionMenuElement_handleToggleE
379
379
  // desirable
380
380
  __classPrivateFieldGet(this, _ActionMenuElement_focusZoneStack, "f").pop(subMenu);
381
381
  const item = __classPrivateFieldGet(this, _ActionMenuElement_instances, "m", _ActionMenuElement_itemForSubMenu).call(this, subMenu);
382
- if (item)
382
+ const openPopover = document.querySelector(':popover-open');
383
+ if (item && !openPopover) {
383
384
  item.focus();
385
+ }
384
386
  }
385
387
  };
386
388
  _ActionMenuElement_handleInvokerActivated = function _ActionMenuElement_handleInvokerActivated(event) {
@@ -360,7 +360,10 @@ export class ActionMenuElement extends HTMLElement {
360
360
  // desirable
361
361
  this.#focusZoneStack.pop(subMenu)
362
362
  const item = this.#itemForSubMenu(subMenu)
363
- if (item) item.focus()
363
+ const openPopover = document.querySelector(':popover-open')
364
+ if (item && !openPopover) {
365
+ item.focus()
366
+ }
364
367
  }
365
368
  }
366
369
 
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 69
9
- PATCH = 3
9
+ PATCH = 4
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.3
4
+ version: 0.69.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-06-05 00:00:00.000000000 Z
12
+ date: 2025-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview