From 36729f6abb047a53bf0342f059cce3d53372300e Mon Sep 17 00:00:00 2001 From: AkameOuO Date: Mon, 7 Oct 2024 18:34:47 +0800 Subject: [PATCH] #44198 Fix the actions menu in the admin isn't working on mobile (#44199) --- .../templates/administrator/atum/js/template.es6.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/media_source/templates/administrator/atum/js/template.es6.js b/build/media_source/templates/administrator/atum/js/template.es6.js index 2ef85491d0cd5..1cfdbf63ceecd 100644 --- a/build/media_source/templates/administrator/atum/js/template.es6.js +++ b/build/media_source/templates/administrator/atum/js/template.es6.js @@ -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, });