diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index a5b5bff7..5756f2be 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -39,13 +39,14 @@ class LightboxService extends taiga.Service lightboxContent = $el.children().not(".close") lightboxContent.hide() - $el.css('display', 'flex') + @animationFrame.add -> + $el.css('display', 'flex') - @animationFrame.add => + @animationFrame.add -> $el.addClass("open") - @animationFrame.add -> - $el.find('input,textarea').first().focus() + @animationFrame.add -> + $el.find('input,textarea').first().focus() @animationFrame.add => lightboxContent.show()