excid3 / tailwindcss-stimulus-components

A set of StimulusJS components for TailwindCSS apps similar to Bootstrap JS components.

Home Page:https://excid3.github.io/tailwindcss-stimulus-components/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

commented

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