Skip to content

Dialog toggle buttons #599

@tommyneu

Description

@tommyneu

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,
      });
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions