We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the documentation here you can use data-turbo-confirm on an a tag to prevent navigation without a confirmation.
data-turbo-confirm
a
<a href="/articles" data-turbo-confirm="Do you want to leave this page?">Back to articles</a>
Trying to confirm on navigation doesn't work unless a turbo-method is specified. Here's a codepen replicating this.
turbo-method
The text was updated successfully, but these errors were encountered:
Care to comment on my PR with your particular use case?
Sorry, something went wrong.
<a>
data-turbo-method
Fix inaccurate doc
9fd6bb6
Until hotwired/turbo#874 or hotwired/turbo#1266 resolve hotwired/turbo#1264 and hotwired/turbo#943, the doc site is wrong and I keep wasting time double-checking it, only for its wrongness to result in me wasting more time debugging Turbo's source code.
hotwired/turbo-site@e2a3fe9
Successfully merging a pull request may close this issue.
Expected behavior
According to the documentation here you can use
data-turbo-confirm
on ana
tag to prevent navigation without a confirmation.Actual behavior
Trying to confirm on navigation doesn't work unless a
turbo-method
is specified. Here's a codepen replicating this.The text was updated successfully, but these errors were encountered: