Open FreddieFruitSticks opened 4 months ago
i got the same error have you solved it then tell me pls how to solve this.
I eventually had to remove the component completely when navigating away from the page.
I conditionally rendered my button wrapped in the GoogleRecaptureProvider
.
{activeStep === 2 ? (
<>
<GoogleReCaptchaProvider scriptProps={
{
async: true,
defer: true
}
} reCaptchaKey="...">
<SubmitButton/>
</GoogleReCaptchaProvider>
</>
) : <Button>
Next
</Button>}
react-google-recaptcha version: 3.1.0 react-async-script version: N/A
If I load the ReCaptcha, hit submit (taking me to the next page), then click browser back, I get the following error
Cannot read properties of undefined (reading 'clients')
I've tried the following;
window.grecaptcha.reset()