From 18ec8ae101851342ac6f474ab04b610ab0762bee Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 6 Feb 2017 22:44:42 -0800 Subject: [PATCH] Remove focus workaround code from 97a11034d11fa6c512eff692e5d230f84f5ad5ed. #1273 It is now causing the problems with focusing it was introduced to fix. --- src/Posting/Captcha.v2.coffee | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Posting/Captcha.v2.coffee b/src/Posting/Captcha.v2.coffee index d014054cc..a36fb21b7 100644 --- a/src/Posting/Captcha.v2.coffee +++ b/src/Posting/Captcha.v2.coffee @@ -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