Merge pull request #670 from patriceac/collapsible-toggle-event

Fire an event when a collapsible is toggled
This commit is contained in:
cmdr2 2022-12-17 16:49:51 +05:30 committed by GitHub
commit cdfef16a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()