Can we use preventDefault() on mouse/click events?

On the topic of mouse and click events, are we able to use functions like preventDefault() which require the event/click reference (so event.preventDefault() ) ?

Yes, in the interaction you always have the reference to the event, as event

Great, thanks

When I try to use event.preventDefault() in an action, event is crossed off.



window.event.preventDefault() doesn’t show the strikethrough, but I haven’t tried it functionally yet

:thinking_face: Even with the strikethrough, it should work. Will be taking a look at it shortly