This commit is contained in:
KONE SOREL 2026-01-12 15:19:53 +00:00
parent ee12014e8c
commit fdcff1a6ac

View File

@ -141,7 +141,7 @@ document.addEventListener('DOMContentLoaded', function() {
|| new bootstrap.Collapse(target, { toggle: false });
// Toggle explicite : si ouvert => fermer, sinon => ouvrir
if (target.classList.contains('show')) {
if (target.classList.contains('collapsing') || target.classList.contains('show')) {
console.log('Click', targetSel, '=> fermeture');
instance.hide();
} else {
@ -151,4 +151,4 @@ document.addEventListener('DOMContentLoaded', function() {
});
});
});
</script>
</script>