Work around new Recaptcha bug interfering with focusing on submit button.
This commit is contained in:
parent
0cbd795fb9
commit
97a11034d1
@ -145,6 +145,10 @@ Captcha.v2 =
|
||||
QR.nodes.el.style.bottom = '0px'
|
||||
iframe.focus() if @shouldFocus
|
||||
@shouldFocus = false
|
||||
# XXX Stop Recaptcha from changing focus from iframe -> body -> iframe on submit.
|
||||
$.global ->
|
||||
f = document.querySelector('#qr iframe')
|
||||
f.focus = f.blur = ->
|
||||
|
||||
setupTextArea: (textarea) ->
|
||||
$.one textarea, 'input', => @save true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user