All collapsible buttons in admin interface get disabled when static navigation is set to expand on bullet

Created on 18 June 2020, almost 5 years ago
Updated 14 May 2023, almost 2 years ago

When DHTML Menu is configured with Static navigation set to Expand on Bullet, all sections within the Drupal administration interface which dynamically open and close by clicking on their name get disabled and remain in their initial open or closed state, and as a result the settings in those initially closed remain unaccessible.
Examples:
Modules administration page: toolbar > modules: modules' sections are opened or closed by clicking on section names and are initially open. When dhtml static navigation is set to expand on bullet, the dynamic open-close is disabled and they remain open.
DHTML Menu configuration page itself: toolbar > configuration > section: user interface > dhtml menu: sections ANIMATION, OTHER EFFECTS, DISABLING HTML sections are opened or closed by clicking on section names and are initially closed. When dhtml static navigation is set to expand on bullet, the dynamic open-close is disabled and they remain closed, thus preventing access to their settings.
I chose PHP Code as component because I guess it's an issue with the php producing the html; the html exact point is as follows:
Html elements involved:
All html fieldsets whose class attribute includes "collapsible" (and usually also "form-wrapper"). When they are hidden, their class attribute includes "collapsed", and when they are shown, it does not.
Html element causing the bug:
All of the above, to be subjected to the dynamic open-close, must include in their class attribute "collapse-processed"; if "collapse-processed" is not included in their class attribute, they remain static, and either open or closed as initially set.
Html example with class collapse-processed, working:
<fieldset class="collapsible collapsed form-wrapper collapse-processed" id="edit-dhtml-menu-settings-animation">
Html example without class collapse-processed, NOT working:
<fieldset class="collapsible collapsed form-wrapper" id="edit-dhtml-menu-settings-animation">

I think this is a bug because it puts at stake the very fact of using this module, as it causes such a problem in the whole administration interface.
I hope it is not a great issue, technically.
Thank you for all your commitment!

🐛 Bug report
Status

Active

Version

1.0

Component

Javascript code

Created by

🇮🇹Italy lucae

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024