Open uendar opened 2 years ago
i have same issue i fixed it temporary by adding this code in useEffect
useEffect(() => { try { if (!Recaptcha.getResponse()) { captchaRef.current?.props.grecaptcha.render(document.getElementById(captchaID), { sitekey: import.meta.env.VITE_CAPTCHA_KEY, size: "normal", }); } } catch (e) {} }, []);
<ReCAPTCHA onChange={token => { elm.value = token; }} id={captchaID} ref={captchaRef} sitekey={import.meta.env.VITE_CAPTCHA_KEY} size="normal" />
@exxizor thanks for answer but the code is not clear . What is Recatpcha and captchaID
This is still open since Apr 9, 2019 Unfortunately this makes this library un-useful :(
@uendar were you using Strict mode or not? https://stackoverflow.com/questions/70890193/why-does-recaptcha-disappear-when-i-navigate-to-another-page
i have a strange issue with recaptcha. i see it when i am in login page but when i go to another page as forget password and then go back to login, the component recaptcha is not anymore