-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.verifyCallback() does not work with es6 classes #231
Comments
workaround: pass any function to why: Line 69 in 52a22d8
if the component mount BEFORE the |
I changed my key using this instruction |
@zhuangya workaround works, but only for 1 form submit. Even if a function is passed to |
@zhuangya The workaround doesn't work for me :( |
Hey guys! As I encountered the same issue and couldn't solve it in a clean way I decided to create my own library. It has some improvements comparing to this lib and most important - it works completely fine! 🚀 Verify callback just works and what's awesome - you can have everything in your React component (not outside in some global variables). Library: https://github.com/sarneeh/reaptcha Hope it helps! 😄 🎉 |
@sarneeh Had this exact problem and this helped a bunch, and is much nicer to use that the appleboy library! Do you intend to continue to maintain it, for instance, after Google deprecate V2 for V3? |
@thomasjthomasj As the library is very small and the functionality isn't a big deal I think I'll have time to maintain it for a longer period of time :) I'm "active" (not contributing much, but following things that happen) on GitHub, so I think it won't be a problem. About reCAPTCHA v3 - I've actually thought about implementing it right away, but I've noticed that reCAPTCHA v3 is still in development and there might be major changes. So I've decided to leave it for now and when it will get stable - I will add support for it. |
Hello,
When calling the
.execute()
method on the recaptcha instance, theverifyCallback
function is not called if within an es6 class. TheverifyCallback
is only called when outside the class. This is not ideal as it doesn't allow you to submit a form.Doesn't work
It does work this way
Is there a way we can stick the
verifyCallback
in the class?The text was updated successfully, but these errors were encountered: