Skip to content

turbo-confirm doesn't work on links without a turbo-method #1264

Open
@JaceBayless

Description

Expected behavior

According to the documentation here you can use data-turbo-confirm on an a tag to prevent navigation without a confirmation.

<a href="/articles" data-turbo-confirm="Do you want to leave this page?">Back to articles</a>

Actual behavior

Trying to confirm on navigation doesn't work unless a turbo-method is specified. Here's a codepen replicating this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions