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
We're trying to completely replace @rails/ujs with Turbo in our app, and there are many programmatic calls to Rails.confirm which don't appear to have an equivalent in Turbo. It would be great if there was a Turbo.confirm method that just called the confirmMethod function.
The text was updated successfully, but these errors were encountered:
Registering the confirm function I know already, what I want is to later call that function from JavaScript (not via a click on [data-turbo-confirm] element).
In @rails/ujs, you can do Rails.confirm = but also Rails.confirm(...), which calls that registered function. It would be nice to be able to do that from Turbo, as then it would match the @rails/ujs convenience.
We're trying to completely replace
@rails/ujs
with Turbo in our app, and there are many programmatic calls toRails.confirm
which don't appear to have an equivalent in Turbo. It would be great if there was aTurbo.confirm
method that just called theconfirmMethod
function.The text was updated successfully, but these errors were encountered: