tailwindcss-stimulus-components icon indicating copy to clipboard operation
tailwindcss-stimulus-components copied to clipboard

Does Autsave require ujs?

Open philipithomas opened this issue 3 years ago • 2 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.

philipithomas avatar May 05 '22 13:05 philipithomas

Yes. The Autosave Controller uses ujs. And, I'm getting the following error since it is not included:

ReferenceError: Can't find variable: Rails

Merovex avatar Jul 24 '22 12:07 Merovex

Related, there was a MR merged recently that removed the Rails.fire call mentioned above: https://github.com/excid3/tailwindcss-stimulus-components/pull/172

dewey avatar Nov 28 '22 19:11 dewey