What’s in your application.js and being included in your layout for JS? On a fresh Rails 7 app your link works for me and prompts as expected, here’s what I’m seeing the current include looks like:
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
With application.js containing:
import "@hotwired/turbo-rails"
import "./controllers"
import * as bootstrap from "bootstrap"
I think the JS event bind for click is most likely in the turbo-rails import but haven’t looked.