question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reset(); not working

See original GitHub issue

react-google-recaptcha version: 2.1.0 react-async-script version: 1.1.1

Hi,

guys I have a problem and I can’t get to the bottom of this…

I am currently using the react-google-recaptcha v2.1.0 on my project and, for some reason, the https://www.google.com/recaptcha/api2/reload?XXX call goes through ONLY for the first time… If for various reasons I am trying to reset the recaptha - via recaptcha.current.reset(); or even window.grecaptcha.reset(); my /reload POST doesn’t even show up in my network tab. All my functions are in my window.grecaptcha and I can call each and everyone via console, no errors or anything, but when I am trying to reset it it doesn’t make the /reload post…

Any thoughts? Thanks! E

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
iulixxicommented, Sep 9, 2020

Small update: Have’t done a single code change and it started working again (note: this was working fine when we thoroughly tested this a few months back)…

Thanks Google… I guess…

1reaction
iulixxicommented, Sep 8, 2020

Thanks for the reply!

I’ll dig deeper into this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Form resetting is not working - Stack Overflow
The problem here is that you've set the id of your button to "reset" . This automatically overwrites the built-in reset method of...
Read more >
HTMLFormElement.reset() - Web APIs | MDN
If a form control (such as a reset button) has a name or id of reset it will mask the form's reset method....
Read more >
ResetForm and Reset not resetting data on the Form
i tried resetting the individual field which is also not working. when creating a new record fields shows the value which was submitted...
Read more >
Using JavaScript to reset or clear a form
<input type="button" value="Reset Form" onClick="this.form.reset()" />. These methods are very convenient to use, but they do not provide the functionality ...
Read more >
Password Reset not working - WordPress.org
It's likely 1 of 2 things: caching (make sure the page isn't cached) or you're modifying emails somehow, perhaps for tracking purposes, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found