f
This commit is contained in:
parent
f3ba93f252
commit
8d4a291188
|
|
@ -140,7 +140,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
const instance = bootstrap.Collapse.getInstance(target)
|
||||
|| new bootstrap.Collapse(target, { toggle: false });
|
||||
|
||||
// Toggle explicite
|
||||
// Si déjà ouvert, on force la fermeture
|
||||
if (target.classList.contains('show')) {
|
||||
console.log('Click', targetSel, '=> fermeture');
|
||||
instance.hide();
|
||||
|
|
@ -151,4 +151,5 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user