Adding toggle buttons for a dialog after the dialog has been initialized will not work to toggle the dialog. The dialogs should have better event listeners to catch any toggle button
Something like this:
window.addEventListener('click', (e) => {
if (e.target.closest(`.dcf-btn-toggle-dialog[data-controls='${this.dialogElement.getAttribute('id')}']`) === null) {
return;
}
this.toggle({
'type': 'toggleButton',
'button': singleToggleButton,
});
});
Adding toggle buttons for a dialog after the dialog has been initialized will not work to toggle the dialog. The dialogs should have better event listeners to catch any toggle button
Something like this: