Skip to content

Commit

Permalink
#44198 Fix the actions menu in the admin isn't working on mobile (#44199
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AkameOuO authored Oct 7, 2024
1 parent 4f03ecc commit 36729f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ document.querySelectorAll('[data-bs-toggle="dropdown"]').forEach((button) => {
button.addEventListener('click', () => {
document.querySelectorAll('[data-bs-toggle="collapse"]').forEach((cb) => {
const target = document.querySelector(cb.getAttribute('data-bs-target'));
if (target.contains(button)) {
return;
}
const collapseMenu = bootstrap.Collapse.getInstance(target) || new bootstrap.Collapse(target, {
toggle: false,
});
Expand Down

0 comments on commit 36729f6

Please sign in to comment.