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:
parent
0975276ca5
commit
18ec8ae101
@ -127,10 +127,6 @@ Captcha.v2 =
|
|||||||
@fixQRPosition()
|
@fixQRPosition()
|
||||||
$.on iframe, 'load', @fixQRPosition
|
$.on iframe, 'load', @fixQRPosition
|
||||||
iframe.focus() if d.activeElement is @nodes.counter
|
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
|
# 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')
|
if $.engine in ['blink', 'edge'] and iframe.parentNode in $$('#qr .captcha-container > div > div:first-of-type')
|
||||||
$.on iframe.parentNode, 'scroll', -> @scrollTop = 0
|
$.on iframe.parentNode, 'scroll', -> @scrollTop = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user