[backport] fix focus on open lightbox
parent
cadb09e65c
commit
33e1f5272e
|
@ -44,9 +44,8 @@ class LightboxService extends taiga.Service
|
||||||
|
|
||||||
@animationFrame.add ->
|
@animationFrame.add ->
|
||||||
$el.addClass("open")
|
$el.addClass("open")
|
||||||
|
$el.one "transitionend", =>
|
||||||
@animationFrame.add ->
|
$el.find('input,textarea').first().focus()
|
||||||
$el.find('input,textarea').first().focus()
|
|
||||||
|
|
||||||
@animationFrame.add =>
|
@animationFrame.add =>
|
||||||
lightboxContent.show()
|
lightboxContent.show()
|
||||||
|
|
Loading…
Reference in New Issue