Skip to content
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

Having multiple forms with V3 recaptcha overwrites global js variables #290

Open
FluffyDiscord opened this issue Apr 19, 2022 · 0 comments

Comments

@FluffyDiscord
Copy link

I have multiple forms on page that use V3 validation. The issue is, that for every form, the widget outputs <script> which contains globally defined variables such as grecaptchaInput or grecaptchaForm which are being overwritten with each new form in page.

The solution is either use local vars, such as let or const or add random prefix to them when generating the widget script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant