Issue Bug Resolved

#111283Module menu loses keyboard focus when expanding a collapsing group

Oliver Bartsch 10/29/26, 19:01 updated 10/31/26, 09:40

Description

Pressing ArrowRight, Enter or Space on a collapsible group in the module menu (e.g. “Content”) while the group is still collapsing moves the keyboard focus to the first sub-module. The group stays collapsed, the sub-module gets hidden when the transition ends, and the focus is lost to the document body.

Steps to reproduce

  1. Log in to the backend
  2. Click the “Content” group in the module menu to collapse it
  3. While it is still collapsing, press ArrowRight or Enter on the group

Expected result

The group is collapsed and the focus stays on the group toggle.

Actual result

The group is collapsed, but the focus has moved to a hidden sub-module and keyboard navigation in the module menu starts over from the document body.

Cause

ModuleMenu.keyboardNavigation() always focuses the first sub-module after requesting the group to expand. Bootstrap’s Collapse ignores show() while a transition is running (see #111277), so the expand does not happen, but the focus is moved anyway.

Reproduced on main (15.0.0-dev), the affected code is identical in 14.3.

Reviews 2

History 24

  1. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-31T09:40:12+00:00" > 10/31/26, 09:40 </span>

    Applied in changeset commit:6b18ca9dd972fc6874b3dfd2ebb8fa3cc8c3667f.