Skip to content

Commit b6262d7

Browse files
committed
update removeOnMount to removeOnUnmount
1 parent ca36699 commit b6262d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ __lang__: In order to translate the reCaptcha widget, you should create a global
5555

5656
__useRecaptchaNet__: If google.com is blocked, you can set useRecaptchaNet to `true` so that the component uses recaptcha.net instead.
5757

58-
__removeOnMount__: If you plan to change the lang dynamically, removeOnMount should probably be true. This will allow you to unmount the reCAPTCHA component and remount it with a new language.
58+
__removeOnUnmount__: If you plan to change the lang dynamically, removeOnUnmount should probably be true. This will allow you to unmount the reCAPTCHA component and remount it with a new language.
5959

6060
```js
6161
window.recaptchaOptions = {
6262
lang: 'fr',
6363
useRecaptchaNet: true,
64-
removeOnMount: false,
64+
removeOnUnmount: false,
6565
};
6666
```
6767

src/recaptcha-wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ const initialOptions = getOptions();
1818
export default makeAsyncScriptLoader(getURL, {
1919
callbackName,
2020
globalName,
21-
removeOnMount: initialOptions.removeOnMount || false,
21+
removeOnUnmount: initialOptions.removeOnUnmount || false,
2222
})(ReCAPTCHA);

0 commit comments

Comments
 (0)