From 8085e93a072c012c3e934315c2ad7ca07bdacb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 8 Jan 2024 11:10:17 +0100 Subject: [PATCH] :bug: Solve annotation stealing focus when not editing --- .../app/main/ui/workspace/sidebar/options/menus/component.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs index e5f1a9479..4eba574e2 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs @@ -139,7 +139,7 @@ {:ref textarea-ref :id "annotation-textarea" :data-debug annotation - :auto-focus true + :auto-focus (or @editing? creating?) :maxLength 300 :on-input autogrow :default-value annotation