focus on the first input element in lightbox
parent
7a0cf62af5
commit
dcf3b8fa1b
|
@ -41,11 +41,12 @@ class LightboxService extends taiga.Service
|
|||
|
||||
$el.css('display', 'flex')
|
||||
|
||||
$el.find('input,textarea').first().focus()
|
||||
|
||||
@animationFrame.add =>
|
||||
$el.addClass("open")
|
||||
|
||||
@animationFrame.add ->
|
||||
$el.find('input,textarea').first().focus()
|
||||
|
||||
@animationFrame.add =>
|
||||
lightboxContent.show()
|
||||
defered.resolve()
|
||||
|
|
Loading…
Reference in New Issue