forked from extern/easydiffusion
Merge pull request #670 from patriceac/collapsible-toggle-event
Fire an event when a collapsible is toggled
This commit is contained in:
commit
cdfef16a0e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user