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

Created on 6 September 2023, 10 months 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.69.0 2024