Issue Bug Resolved

#111277Module menu indicator shows wrong state after double click

Peter Neumann 10/29/26, 17:07 updated 10/29/26, 19:10

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

  1. Log in to the backend
  2. 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

Files 2

History 24

  1. Peter Neumann commented and changed status Under Review Resolved done 0 % 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.