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