Does Autsave require ujs?
philipithomas opened this issue · comments
I'm trying to use the Autosave controller. I notice it references:
Rails.fire(this.formTarget, 'submit')
To confirm - is this using UJS? These are Stimulus controllers, but I've been unable to find a Rails.fire
method in any of the Stimulus docs.
Depending on the resolution - I can update the docs to specify the dependency for autosave.
Yes. The Autosave Controller uses ujs. And, I'm getting the following error since it is not included:
ReferenceError: Can't find variable: Rails
Related, there was a MR merged recently that removed the Rails.fire
call mentioned above: #172