# Bug DREAM-980 - ActionMenu closes when a sub-menu closes with ArrowLeft or Escape

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-980

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | Yes |
| Pull preview |  |
| List | a11y report 2026 |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Lars Wassermann |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

Reproduced in the QA Edge Lookbook on 8 November 2026. The component fix has since been released in Primer ViewComponents 0.96.0.

### Steps to reproduce

1.  Open the [ActionMenu Sub-menus preview](https://qa.openproject-edge.com/lookbook/preview/primer/alpha/action_menu/sub_menus).

2.  Focus **Edit** and press **Enter** to open the menu.

3.  Move to **Paste special** and press **ArrowRight**. Focus **Paste plain text** in the submenu.

4.  Press **ArrowLeft**. Repeat the sequence and press **Escape** instead.

5.  For the top-level case, reopen **Edit**, focus **Cut**, and press **ArrowLeft**.

### What is the buggy behavior?

Both **ArrowLeft** and **Escape** close the submenu and the parent menu. Focus returns to **Edit**, so a keyboard user must reopen the menu to choose a different option. **ArrowLeft** on **Cut** also closes the top-level menu.

### What is the expected behavior?

**ArrowLeft** and **Escape** close only the submenu and return focus to **Paste special** in the parent menu. **ArrowLeft** on a top-level item leaves the top-level menu open.

### Important note

<mention class="mention" data-id="83048" data-type="work_package" data-text="#DREAM-1000" data-display-id="DREAM-1000">\#DREAM-1000</mention> tracks an issue with ArrowRight behaviour.

The [Primer fix](https://github.com/opf/primer_view_components/pull/547) shipped in [0.96.0](https://github.com/opf/primer_view_components/releases/tag/v0.96.0). After OpenProject picks up that release, check the Lookbook preview and a product menu with a submenu, such as a work package’s **Move** menu in Backlogs or Sprints. The equivalent QA Stage Lookbook preview returned 404.

### **Logs**

Focus and menu visibility were checked in the browser. No console output was captured.

### Screenshots and other files

Original recording: `Screen_Recording_2026-11-05_at_15.38.27.mov`.

### Environment information

  - **OpenProject installation type** — Hosted QA Edge Lookbook.

  - **OpenProject version** — Exact deployed Edge build not recorded.

  - **Browser** — Chromium in the Codex browser for the 8 November retest. The original report used Chrome.

  - **Operating system** — macOS.

  - **Language** — English preview.
