angular-recaptcha icon indicating copy to clipboard operation
angular-recaptcha copied to clipboard

Fallback/no-js mode?

Open AndersDJohnson opened this issue 10 years ago • 2 comments

Even though I have JavaScript enabled, I am sometimes given the fallback/no-js mode. Maybe it's something other than JavaScript it's checking for that I lack in my session.

It might be possible to support this mode - it generates a <textarea name="g-recaptcha-response"> where the user pastes a code - might be able to watch for this and set form as valid. It could be optional since it's probably an edge case and not as performant or idiomatic Angular.

AndersDJohnson avatar Mar 07 '15 22:03 AndersDJohnson

@cliechty, thanks for the patch - it works fine once adding $timeout: elm.find('textArea').on('paste', function(evt) { $timeout(function() { callback(evt.target.value); }); });

Without $timeout "evt.target.value" results in the old - i.e. empty value.

vilbara avatar Nov 23 '15 13:11 vilbara

+1 for the pull request https://github.com/VividCortex/angular-recaptcha/pull/91 including the fix of @vilbara.

jrauschenbusch avatar May 23 '16 10:05 jrauschenbusch