Don't auto-hide the QR when focusout-ing of the QR on Firefox.
This commit is contained in:
parent
f42296483f
commit
d73b3c9e39
@ -82,7 +82,13 @@ QR =
|
|||||||
focusin: ->
|
focusin: ->
|
||||||
$.addClass QR.nodes.el, 'has-focus'
|
$.addClass QR.nodes.el, 'has-focus'
|
||||||
focusout: ->
|
focusout: ->
|
||||||
|
<% if (type === 'crx') { %>
|
||||||
$.rmClass QR.nodes.el, 'has-focus'
|
$.rmClass QR.nodes.el, 'has-focus'
|
||||||
|
<% } else { %>
|
||||||
|
$.queueTask ->
|
||||||
|
return if $.x 'ancestor::div[@id="qr"]', d.activeElement
|
||||||
|
$.rmClass QR.nodes.el, 'has-focus'
|
||||||
|
<% } %>
|
||||||
hide: ->
|
hide: ->
|
||||||
d.activeElement.blur()
|
d.activeElement.blur()
|
||||||
$.addClass QR.nodes.el, 'autohide'
|
$.addClass QR.nodes.el, 'autohide'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user