@openproject/primer-view-components 0.84.4 → 0.84.5-rc.e6e0c3c9a

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.
@@ -19,6 +19,7 @@ var _ActionMenuElement_instances, _a, _ActionMenuElement_abortController, _Actio
19
19
  var ActionMenuElement_1;
20
20
  import { controller, target } from '@github/catalyst';
21
21
  import '@oddbird/popover-polyfill';
22
+ import AnchoredPositionElement from '../../anchored_position';
22
23
  import { observeMutationsUntilConditionMet } from '../../utils';
23
24
  import { ActionMenuFocusZoneStack } from './action_menu_focus_zone_stack';
24
25
  import { ClipboardCopyElement } from '@github/clipboard-copy-element';
@@ -365,6 +366,9 @@ _ActionMenuElement_handleItemKeyboardEvent = function _ActionMenuElement_handleI
365
366
  };
366
367
  _ActionMenuElement_handleToggleEvent = function _ActionMenuElement_handleToggleEvent(event) {
367
368
  const subMenu = event.target;
369
+ // Ignore toggle events from non-anchored-position elements (e.g. tooltips inside the menu)
370
+ if (!(event.target instanceof AnchoredPositionElement))
371
+ return;
368
372
  if (event.newState === 'open') {
369
373
  // allow tabbing away from primary menu, but trap focus in sub-menus
370
374
  const isPrimaryMenu = subMenu === this.overlay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.84.4",
3
+ "version": "0.84.5-rc.e6e0c3c9a",
4
4
  "description": "ViewComponents of the Primer Design System for OpenProject",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",