Skip to content

Commit b69b28b

Browse files
committed
Fixed bug in recaptcha victorjonsson#605
1 parent b5f890a commit b69b28b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/security.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@
581581
size: size,
582582
type: type,
583583
callback: function (result) {
584-
$form.find('[data-validation~="recaptcha"]').each(function () {
585-
$(this).trigger('validation', (result && result !== ''));
586-
});
584+
$form.find('[data-validation~="recaptcha"]')
585+
.trigger('validation', (result && result !== ''));
586+
587587
},
588588
'expired-callback': function() {
589589
$form.find('[data-validation~="recaptcha"]').trigger('validation', false);

0 commit comments

Comments
 (0)