From 0d63e471bede6ae7f7ae1eb70d08ffa0cae3b9b1 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 3 May 2022 16:45:21 -0400 Subject: [PATCH] Only show cursor if focused --- web/components/feed/feed-items.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/feed/feed-items.tsx b/web/components/feed/feed-items.tsx index 3627a6b4..472f6649 100644 --- a/web/components/feed/feed-items.tsx +++ b/web/components/feed/feed-items.tsx @@ -299,7 +299,7 @@ export function CommentInput(props: { onChange={(e) => setComment(e.target.value)} className="textarea textarea-bordered w-full resize-none" placeholder="Add a comment..." - autoFocus={true} + autoFocus={focused} rows={answerOutcome == undefined || focused ? 3 : 1} onFocus={() => setFocused(true)} onBlur={() => !comment && setFocused(false)}