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.