in a back-end view ./administrator/components/com_content/tmpl/articles/default.php create an accordion with the joomla core htmlhelpers, add the following lines before the line starting with <form action=
<?php echo HTMLHelper::_('bootstrap.startAccordion', 'accordion-test'); ?>
<?php echo HTMLHelper::_('bootstrap.addSlide', 'accordion-test', Text::_('TEST'), 'test-collapse', 'test'); ?>
<h1>TEST-ACCORDION</h1>
<?php echo HTMLHelper::_('bootstrap.endSlide'); ?>
<?php echo HTMLHelper::_('bootstrap.endAccordion'); ?>
When you now go to the view articles, you see the closed accordion.
Click on the accordion to open it.
The accordion opens.
now click on the topbar menu 'User Menu'
The accordion now closes although it should stay open.
The issue here is that the template.js selects all elements with [data-bs-toggle="collapse"]
and the closes these.
This is not correct! it should only close dropdowns (used in the menus) and no other elements.
accordion should stay open
accordion (and if multiple set on the page, accordions) are closed
J5.2 (latest)
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
hi @richard67 thanks for following up, appreciate it.
unfortunately this is not related. The PR you linked is for the front-end template, not the back-end (the metismenu.js it is not used in the back-end).
As pointed out, this is an issue in atum template.js
The relevant js cane be found at
joomla-cms/build/media_source/templates/administrator/atum/js/template.es6.js
Lines 290 to 307 in a89c179
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-02-11 14:43:11 |
Closed_By | ⇒ | richard67 |
Duplicate report to issue #44140 ? If yes, please test if this PR helps: #44221 . It will need to use the package created by Drone for testing, or if you have a development environment run
npm ci
after applying the changes from the PR.