Skip to content

Can't listen to click if confirmation-event is configured #174

@ppazos

Description

@ppazos

Related to the issue I opened before, if I set the confirmation-event that is triggered when the Yes is clicked, but I need to trigger something on click, I can't, the click is ignored.

I have other plugin that shows a spinner on the button/link when it's clicked, and I can't trigger it because the click is not fired.

And because of #173 when click is configured, it's triggered right away without waiting for the "Yes" confirmation.

So my use case would be:

  1. allow listening on click, to do something that is not related with the navigation like displaying a spinner, one possibility is to be able to listen on the confirmation 'show' event and I think this is not possible right now.
  2. the event triggered when clicking "yes" in the confirm should do the navigation or whatever logic was associated with the button/link when it doesn't have the confirm configured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions