Remove focus workaround code from 97a11034d11fa6c512eff692e5d230f84f5ad5ed. #1273

It is now causing the problems with focusing it was introduced to fix.
This commit is contained in:
ccd0 2017-02-06 22:44:42 -08:00
parent 0975276ca5
commit 18ec8ae101

View File

@ -127,10 +127,6 @@ Captcha.v2 =
@fixQRPosition()
$.on iframe, 'load', @fixQRPosition
iframe.focus() if d.activeElement is @nodes.counter
# XXX Stop Recaptcha from changing focus from iframe -> body -> iframe on submit.
$.global ->
f = document.querySelector('#qr iframe')
f.focus = f.blur = ->
# XXX Make sure scroll on space prevention (see src/css/style.css) doesn't cause scrolling of div
if $.engine in ['blink', 'edge'] and iframe.parentNode in $$('#qr .captcha-container > div > div:first-of-type')
$.on iframe.parentNode, 'scroll', -> @scrollTop = 0