fix focus on open lightbox

stable
Juanfran 2015-12-16 08:16:22 +01:00
parent e4daf98069
commit 53d5f3d1c0
1 changed files with 2 additions and 3 deletions

View File

@ -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()