From c3439d4373ebd23acde9060354d4df1e1751468a Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Fri, 24 Mar 2023 17:05:53 +0200 Subject: [PATCH] Fix jQuery Migrate warning --- ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js b/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js index 43c476ec..163322f8 100644 --- a/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js +++ b/ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js @@ -154,7 +154,7 @@ define( var listeners; if (this.getIsInvisibleRecaptcha() && parentForm.length > 0) { - parentForm.submit(function (event) { + parentForm.on('submit', function (event) { if (!this.tokenField.value) { // eslint-disable-next-line no-undef grecaptcha.execute(widgetId);