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