Fix bug where submit button was still getting unwanted focus under certain conditions.
This commit is contained in:
parent
6cf66ed43b
commit
93918ae575
@ -146,14 +146,15 @@ Captcha.v2 =
|
|||||||
$.set 'captchas', @captchas
|
$.set 'captchas', @captchas
|
||||||
@count()
|
@count()
|
||||||
|
|
||||||
|
focus = d.activeElement?.nodeName is 'IFRAME' and d.activeElement.src?[...38] is 'https://www.google.com/recaptcha/api2/'
|
||||||
if @needed()
|
if @needed()
|
||||||
if QR.cooldown.auto or Conf['Post on Captcha Completion']
|
if focus
|
||||||
@shouldFocus = true
|
if QR.cooldown.auto or Conf['Post on Captcha Completion']
|
||||||
else
|
@shouldFocus = true
|
||||||
QR.nodes.status.focus()
|
else
|
||||||
|
QR.nodes.status.focus()
|
||||||
@reload()
|
@reload()
|
||||||
else
|
else
|
||||||
focus = d.activeElement?.nodeName is 'IFRAME' and d.activeElement.src?[...38] is 'https://www.google.com/recaptcha/api2/'
|
|
||||||
if pasted
|
if pasted
|
||||||
@destroy()
|
@destroy()
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user