From b17b5549658469ff08689d37264a9513a865c1ce Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 4 Apr 2018 19:49:05 -0700 Subject: [PATCH] fix auto-focus for dialog compose --- routes/_components/compose/ComposeInput.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/_components/compose/ComposeInput.html b/routes/_components/compose/ComposeInput.html index 2d4e0a2..61234c8 100644 --- a/routes/_components/compose/ComposeInput.html +++ b/routes/_components/compose/ComposeInput.html @@ -61,7 +61,7 @@ if (firstTime) { firstTime = false if (this.get('autoFocus')) { - textarea.focus() + requestAnimationFrame(() => textarea.focus()) } } })