Skip to content

Commit 5034720

Browse files
author
Alex Zeng
committed
Bug fix for preventDefault
1 parent 9fd6236 commit 5034720

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AlexStack/GoogleRecaptchaToAnyForm/GoogleRecaptcha.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ function alexFindClosestNode(el, selector) {
120120
//recaptcha failed validation
121121
if(response.length == 0) {
122122
alert("$please_tick_msg");
123-
e.preventDefault();
123+
if (!$debug_alert){
124+
e.preventDefault();
125+
}
124126
return $debug_alert;
125127
}
126128
return true;

0 commit comments

Comments
 (0)