#111277Module menu indicator shows wrong state after double click
Description
Problem
Double-clicking a collapsible group in the module menu (e.g. “Content”) collapses the group, but the chevron indicator still points to the expanded state. The toggle button keeps aria-expanded="true" and the group keeps the class modulemenu-group-expanded, although the sub-modules are hidden.
Steps to reproduce
- Log in to the backend
- Double-click the “Content” group in the module menu
Expected result
The group is collapsed, the chevron points down and aria-expanded is false.
Actual result
The group is collapsed, but the chevron still points up and aria-expanded stays true.
module-menu-double-click-before.png
Cause
Bootstrap’s Collapse ignores show() and hide() while a transition is still running. The second click is swallowed by Bootstrap, but ModuleMenu.toggleModuleGroup() still flips aria-expanded, the group classes and the persisted state.
Found in TYPO3 v14, reproduced on main (15.0.0-dev). The affected code is identical in 14.3.
With the patch
Toggling is skipped while the collapse transition is running, so the indicator matches the visible state again:
module-menu-double-click-after.png
I will push a patch for this.
Reviews 4
Related issues 1
Files 2
History 24
-
Gerrit Code Review pushed patch set 1 for main to change 97213 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-29T17:09:13+00:00" > 10/29/26, 17:09 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 97217 <span data-processor="relativetime" data-value="2026-10-29T18:16:09+00:00" > 10/29/26, 18:16 </span>
-
Oliver Bartsch changed Related to #111283 <span data-processor="relativetime" data-value="2026-10-29T19:01:36+00:00" > 10/29/26, 19:01 </span>
-
Peter Neumann commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-29T19:10:16+00:00" > 10/29/26, 19:10 </span>
Applied in changeset commit:e0ac0233edebe4adfe67b3b0fb30d0d6db119415.