Skip to content

Commit

Permalink
Merge pull request #291 from mackrais/master
Browse files Browse the repository at this point in the history
Bug with v3 submit js event
  • Loading branch information
excelwebzone committed Apr 22, 2022
2 parents bcacdbe + db8abba commit 8dad97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/Form/v3/ewz_recaptcha_widget.html.twig
Expand Up @@ -20,7 +20,7 @@
grecaptcha.ready(function () {
grecaptcha.execute('{{ form.vars.public_key }}', { action: '{{ form.vars.action_name|default(constant('EWZ\\Bundle\\RecaptchaBundle\\Form\\Type\\EWZRecaptchaV3Type::DEFAULT_ACTION_NAME')) }}' }).then(function (token) {
grecaptchaInput.value = token;
grecaptchaForm.submit();
HTMLFormElement.prototype.submit.call(grecaptchaForm);
});
});
}, false);
Expand Down

0 comments on commit 8dad97a

Please sign in to comment.