New Rails 7 app created in 2021 or 2022, when I click on a form with data-turbo-confirm
, the alert message does not show.
<%= form_with url: root_path(), data: {'turbo-confirm': "Are you sure you want to submit this form?"},
method: :delete do |f| %>
<%= f.submit "Delete".html_safe, class: "delete-apple-button btn btn-primary btn-sm" %>
<% end %>
<br />
<%= turbo_frame_tag "apples-list" do %>
nothing has happened yet
<% end %>
Page loads to:
When you click delete, no alert is shown:
Expected result: • Alert message confirming the button action
Actual result: • No alert is shown