Skip to content

Duplicated Nested Close Buttons after update #235

@pantomash

Description

@pantomash

I have overrided close button html. In version 8.0.0 generated code was looking fine.
After update to newest version 11.0.1 that was needed to update Angular, generated code looks different.
Now my custom close button is wrapped by generated button element.

 toasterConfig = new ToasterConfig({
    tapToDismiss: true,
    mouseoverTimerStop: true,
    animation: 'fade',
    timeout: {
      error: NOTIFICATION_TIMEOUT_NONE,
      success: NOTIFICATION_TIMEOUT,
      warning: NOTIFICATION_TIMEOUT,
    },
    showCloseButton: true,
    closeHtml: `<button aria-label="Close" class="toast-close-button">x</button>`,
  })

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions