We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7219e56 + 34bf764 commit 9796adbCopy full SHA for 9796adb
src/recaptcha.js
@@ -22,6 +22,8 @@ export default class ReCAPTCHA extends React.Component {
22
23
if (grecaptcha && widgetId !== undefined) {
24
return grecaptcha.execute(widgetId);
25
+ } else {
26
+ this._executeRequested = true;
27
}
28
29
@@ -56,6 +58,10 @@ export default class ReCAPTCHA extends React.Component {
56
58
widgetId: id,
57
59
}, cb);
60
61
+ if (this._executeRequested && this.props.grecaptcha && this.state.widgetId !== undefined) {
62
+ this._executeRequested = false;
63
+ this.execute();
64
+ }
65
66
67
componentDidMount() {
0 commit comments