recaptcha does not trigger post page reload
jasan-s opened this issue · 3 comments
jasan-s commented
recaptcha works as expected on the first load of a component, however, If I reload the page and then try this.recaptchaInstance.execute()
nothing happens
markpradhan commented
Had the same issue, moved to react-google-recaptcha which has very similar api. Problem solved.
shawngavin commented
Try removing the explicit render argument or changing it to the default onload.
i.e. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
From Google's Recaptcha docs.
render | explicit onload | Optional. Whether to render the widget explicitly. Defaults to onload, which will render the widget in the first g-recaptcha tag it finds. |
---|
montanaflynn commented
Same issue for me when using invisible recaptcha v2, switching to the checkbox works after using recaptchaInstance.reset();