albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
601 stars 162 forks source link

Possible error when g-recaptcha code is not sent #128

Open fklee opened 4 years ago

fklee commented 4 years ago

Hello,

Just get an Javascript issue which could prevent to send the code when submitting the form. Hope it could help someone.

I had the kind of JS code to prevent doubleclick on forms : $("form submit,form .submit,form button[type='submit']").on("click",function(){ if(!$(this).hasClass("confirm")){ $(this).attr('disabled','disabled'); $(this).closest("form").submit(); } }); Thanks for your excellent work on google recaptcha for Laravel 👍

(Sorry to put this here, not a real issue, change it for an other place as you want !)