We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02c13f0 + 46a5e0b commit 12de015Copy full SHA for 12de015
ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js
@@ -160,6 +160,13 @@ define(
160
grecaptcha.execute(widgetId);
161
event.preventDefault(event);
162
event.stopImmediatePropagation();
163
+ if (this.$parentForm.valid()) {
164
+ let formSubmitButton = this.$parentForm.find('button:not([type]), [type=submit]');
165
+
166
+ if (formSubmitButton.length) { //eslint-disable-line max-depth
167
+ formSubmitButton.attr('disabled', true);
168
+ }
169
170
}
171
}.bind(this));
172
0 commit comments