Closed docstun closed 6 years ago
Try making your submit button a target and click()
ing it instead: this.submitTarget.click()
.
We’ve just set up a new forum for questions like these: http://discourse.stimulusjs.org
Would you mind re-posting your question there if that doesn't solve your issue? Thank you!
Awesome, works! Thanks for the swift help!
Hi there,
First of all: Thanks for sharing this library, it looks very promising and like a "missing piece of the puzzle" 👍
I am currently trying to integrate it in an existing Rails application with remote forms but I am struggling with making those play nicely with stimulus. When calling
submit()
, it seems to ignore the remote attribute and submits the form without XHR:filter_controller.js:
The
update()
method is called correctly when the input changes but it does submit the form with a regular HTTP request instead via XHR. It worked just fine with the previous jQuery-based approach. I tried it withjquery_ujs
as well asrails-ujs
.Any ideas what might cause this?
Thanks!