33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-23 13:17:42 +00:00

Merge pull request #203 from dryabov/patch-72

Fix visibility of accordion collapse button with Bootstrap 5.2
This commit is contained in:
Denis Ryabov 2023-07-27 19:44:03 +03:00 committed by GitHub
commit 3712a97d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,7 @@
if (!jed_collapse_init) {
[...document.querySelectorAll('.card-header[data-bs-toggle]')].forEach(el => {
el.classList.add('accordion');
el.classList.add('accordion-button');
el.classList.add('collapsed');
el.setAttribute('href', el.dataset.href);