react-recaptcha icon indicating copy to clipboard operation
react-recaptcha copied to clipboard

recaptcha does not trigger post page reload

Open jasan-s opened this issue 7 years ago • 3 comments

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

jasan-s avatar Jul 09 '18 21:07 jasan-s

Had the same issue, moved to react-google-recaptcha which has very similar api. Problem solved.

markpradhan avatar Jul 11 '18 14:07 markpradhan

Try removing the explicit render argument or changing it to the default onload. i.e.

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.

shawngavin avatar Jan 04 '19 15:01 shawngavin

Same issue for me when using invisible recaptcha v2, switching to the checkbox works after using recaptchaInstance.reset();

montanaflynn avatar Jul 29 '20 12:07 montanaflynn