From 65bc0f0f86b94a440183492cd4f3f822490747e4 Mon Sep 17 00:00:00 2001 From: Ian Philips <iansphilips@gmail.com> Date: Thu, 9 Jun 2022 07:36:36 -0600 Subject: [PATCH] Disable always autofocus --- web/components/feed/feed-comments.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/feed/feed-comments.tsx b/web/components/feed/feed-comments.tsx index 9a3054a0..3303636c 100644 --- a/web/components/feed/feed-comments.tsx +++ b/web/components/feed/feed-comments.tsx @@ -441,7 +441,7 @@ export function CommentInput(props: { ? 'Write a reply... ' : 'Write a comment...' } - autoFocus={true} + autoFocus={focused} onFocus={() => setFocused(true)} onBlur={() => shouldCollapseAfterClickOutside && setFocused(false)