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
1 changed files with 1 additions and 0 deletions

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