re
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user