-
Notifications
You must be signed in to change notification settings - Fork 128
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
Question: What is the usecase for emitting a null value if .reset() is callled and widget has a response ready #99
Comments
Hello, @eccentric93 ! This is a good question, actually, and there is a couple reasons for doing it this way:
Could you please elaborate on why this is an issue for you? |
Oh, thanks for the explanation. I think the confusion was caused for me as same EventEmitter was used to
The second statement might be helpful only for devs using "Click to validate recaptcha" and not for the ones using "Invisible recaptcha" |
So if i understood you correctly, the desired behavior in case of |
IMHO, there should be no event emitted on reset(), as this is not an auto-generated event, this is called by user explicitly
If user knows he needs to reset the re-captcha, why doesnt he do the other stuff too after calling .reset()? There should be an event for expiration though, as this is auto-generated, not user controlled. A different event emitter could be used for signalling both the usecases(onResolve and onExpire) for both "Click" and "Invisible" recaptcha options. It is not that it is blocking anything, if users want to use invisible recaptcha, this is what they have to do now
This is what I think would help
|
Summary
I'm submitting a:
Description
I am using invisible recaptcha in my angular component. I want to reset the form (along with re-captcha) if server validation fails, for that reason I call .reset() on the captcha ViewChild when I receive response from server
Issue is, a null value is emitted in this case
Although, this is in accordance with what doc says, I am unable to figure out what could be the usecase for this.
Thanks for your help
The text was updated successfully, but these errors were encountered: