Click trigger on button is reloading the page

Hello,

We’re having a weird issue where a Trigger of type Click listener on a button class name is reloading the webpage.
Removing the trigger on Zaraz fixes the issue.

What would cause this behavior ? The button on click event is linked to some logic that displays a modal. The modal is briefly visible before the page reloads.

thank you for your help

The solution was simply to call preventDefault on the form container onSubmit event.