-
Notifications
You must be signed in to change notification settings - Fork 163
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
refactor v3 twig to support multiple recaptcha on the same page, and … #295
base: master
Are you sure you want to change the base?
Conversation
…load recaptcha javascript only if form is visible, and support custom form submit listeners
Are there tests? |
Just tested this PR on my project having issues related to multiple forms with recaptcha on a same page. |
Thank you for addressing the multiple recaptcha problem with your fix. I've been experiencing the same issue. I noticed that you submitted this pull request nearly a year ago. Could you please provide information on the steps required to incorporate your fix into the bundle? |
Hi, The PR try to resolve the issue calling form.querySelector('[type="submit"]').click() but:
I propose to call the click function on the event submitter (e.submitter) if present, otherwise fallback to the form submit() function |
Yes using |
Hello, i've forked this plugin in our webgriffe projects, and with many iterations this is the final version of the recaptcha v3 we could come to.
It has different features:
display: none
) useful for pagespeed if you have the recaptcha on all pages inside modal for examplsubmit
addEventListener
, it prevents also them, and it calls them triggering click on the submit button instead ofform.submit()
which doesn't triggersubmit
listeners