Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.
Unlimited access. Cancel anytime.
@Chris I found your Stimulus github issue but I also don't undertsand why
ajax:beforeSend is required to get
preventDefault to work:
"this is a remote form using rails ujs, and we have to use the AJAX before send event, and we'll pass that into our tweet form submit action."
In my case I'm simply trying to use
preventDefault with a
remote link but I can't get it to work as expected.