#111283Module menu loses keyboard focus when expanding a collapsing group
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
- Log in to the backend
- Click the “Content” group in the module menu to collapse it
- 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
Related issues 1
History 24
-
Oliver Bartsch changed Related to #111277 <span data-processor="relativetime" data-value="2026-10-29T19:01:36+00:00" > 10/29/26, 19:01 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97218 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-29T19:15:22+00:00" > 10/29/26, 19:15 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 97250 <span data-processor="relativetime" data-value="2026-10-31T09:34:10+00:00" > 10/31/26, 09:34 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %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.