Fire an event when a collapsible is toggled

Need an event to know that a collapsible got toggled to be able to resize the panels accordingly. Thanks!
This commit is contained in:
patriceac 2022-12-17 03:05:43 -08:00
parent c240d6932a
commit 1cae39b105

View File

@ -45,6 +45,7 @@ function toggleCollapsible(element) {
handle.innerHTML = '➖' // minus
}
}
document.dispatchEvent(new CustomEvent('collapsibleClick', { detail: collapsibleHeader }))
if (COLLAPSIBLES_INITIALIZED && COLLAPSIBLE_PANELS.includes(element)) {
saveCollapsibles()