33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-13 16:56:36 +00:00

Fix visibility of accordion collapse button with Bootstrap 5.2

This commit is contained in:
Denis Ryabov 2023-07-27 20:38:10 +04:00
parent e290c73f48
commit c4fb78c186

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);