Don't focus on checkbox when iframe doesn't have focus.
This commit is contained in:
parent
ddcc8b7c10
commit
f3f110df22
@ -29,7 +29,7 @@ Captcha.v2 =
|
||||
$.globalEval 'window.focus = function() {};'
|
||||
$.on window, 'focus', ->
|
||||
$.queueTask ->
|
||||
return unless checkbox = $.id 'recaptcha-anchor'
|
||||
return unless d.hasFocus() and (checkbox = $.id 'recaptcha-anchor')
|
||||
checkbox.focus() unless d.activeElement is checkbox
|
||||
|
||||
shouldFocus: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user