Does not work with reCaptcha3 with fallback reCaptcha2 - cannot read properties of undefined "apply"

Created on 6 September 2023, over 1 year ago

Problem/Motivation

cv.jquery.validate.js:56
this.beforeSubmitCVOriginal.apply errors with: cannot read properties of undefined "apply"

Steps to reproduce

1. Install reCaptcha3 with fallback reCaptcha2, set threshold to 1, to show fallback always.
2. Create webform with reCaptcha3.
3. Fill the form and press form button
4. Do the captcha.
3. Press form button again
You will see modal error!

Proposed resolution

In the code early you assign:
cv.jquery.validate.js:43
Drupal.Ajax.prototype.beforeSubmitCVOriginal = Drupal.Ajax.prototype.beforeSubmit;

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇧🇬Bulgaria divined

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024