ambethia / recaptcha

ReCaptcha helpers for ruby apps

Home Page:http://github.com/ambethia/recaptcha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent 'submitInvisibleRecaptchaForm' callback from loading on page load

yoshie902a opened this issue · comments

When I use the 'submitInvisibleRecaptchaForm' callback, I noticed it gets called on page load. How do I prevent it from being called on page load?

Ruby View

recaptcha_tags(callback: 'submitInvisibleRecaptchaForm')

 recaptcha_v3(action: 'signon', callback: 'submitInvisibleRecaptchaForm', site_key: 'site_key')

JS Code

function submitInvisibleRecaptchaForm(){
 // Do stuff
 ...
};