Skip to content

Commit 5d06f91

Browse files
committed
Fix contact form submission with captcha
1 parent aed3bf3 commit 5d06f91

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

public/partials/divi-accessibility-embedded-js.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,7 @@ function skipTo(target) {
265265
* @divi-module Contact
266266
*/
267267
$('.et_pb_contact_form').each(function (e) {
268-
var captchaQuestion = $(this).find('.et_pb_contact_captcha_question');
269-
$(this).find('input.et_pb_contact_captcha').attr('id', 'et_pb_contact_module_captcha_' + e);
270-
271-
captchaQuestion.wrap('<label for="et_pb_contact_module_captcha_' + e + '"></label>');
268+
$(this).find('.et_pb_contact_captcha_question').parent().wrap('<label></label>');
272269
});
273270
});
274271
})(jQuery);

0 commit comments

Comments
 (0)