fix focus on open lightbox
parent
e4daf98069
commit
53d5f3d1c0
|
@ -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