I've added hCaptcha to my website in invisible mode, and I invoke the challenge when the submit button on my form is pressed by doing
await captcha.execute({ async: true }).catch(() => { // ... }
submitForm();
However, for some reason this causes the page to scroll to the top and then it shows me the hCaptcha challenge.
How can I prevent this scrolling from happening?