Activity
That's a great one!
I'd suggest using <button type="button">
elements instead of links. This way you don't have to use event.preventDefault()
because by default a button doesn't do anything.
Also, for both links and buttons, the default Stimulus action is click
so the click->
part in the data-action
is optional.
Posted in Using webpacker in Rails Engines?
Hi Johan! Have you seen this issue? https://github.com/rails/webpacker/issues/348