dozoisch / dozoisch/react-google-recaptcha

recaptchaOptions.removeOnUnmount appears broken

Open
#116 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I have the `window.recaptchaOptions.removeOnUnmount` flag set to `true`, but after React unmounts the component (I navigate to different screen without recaptcha component) the recaptcha `` tag is still in the DOM.

This does not allow me to change the recaptcha language (e.g. when user updated profile) because the script has `hl` (lang) URL param in it.

:(

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.