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