You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a vanilla rails new app with Rails 7.2.0. I have not touched any of the default Turbo configuration. I have confirmed with the web console that Turbo is enabled and the JS is included in the page.
If I create a link like:
<aclass="nav-link" data-turbo-confirm="Are you sure?" href="/index2">Index 2</a>
then I do not see a conformation.
But if I do this:
<aclass="nav-link" data-turbo-confirm="Are you sure?" data-turbo-method="get" href="/index2">Index 2</a>
then I see the confirmation prompt.
These links are in normal templates. I have not explicitly disabled Turbo anywhere.
Another possibly separate issue: If a link is to another domain/external, then adding data-turbo-method will cause Turbo to handle it, but it will ignore data-turbo-confirm.
Hello,
I have a vanilla
rails new
app with Rails 7.2.0. I have not touched any of the default Turbo configuration. I have confirmed with the web console that Turbo is enabled and the JS is included in the page.If I create a link like:
then I do not see a conformation.
But if I do this:
then I see the confirmation prompt.
These links are in normal templates. I have not explicitly disabled Turbo anywhere.
From the docs (https://turbo.hotwired.dev/handbook/drive#requiring-confirmation-for-a-visit) it seems that shouldn't be necessary?
The text was updated successfully, but these errors were encountered: