From 450e8d829e7c9134989de29e1e948e4aaedb206a Mon Sep 17 00:00:00 2001 From: 100Gyeon Date: Sat, 9 Dec 2023 23:49:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8C=93=EA=B8=80=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/feed/FeedCommentInput/FeedCommentInput.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/feed/FeedCommentInput/FeedCommentInput.tsx b/src/components/feed/FeedCommentInput/FeedCommentInput.tsx index ef99e7f3..03768304 100644 --- a/src/components/feed/FeedCommentInput/FeedCommentInput.tsx +++ b/src/components/feed/FeedCommentInput/FeedCommentInput.tsx @@ -27,7 +27,10 @@ const FeedCommentInput = forwardRef( event.preventDefault(); if (!comment.trim()) return; - onSubmit(comment).then(() => setComment('')); + onSubmit(comment).then(() => { + setComment(''); + setIsFocused(false); + }); }; return ( @@ -37,7 +40,6 @@ const FeedCommentInput = forwardRef( value={comment} onChange={handleChange} onFocus={() => setIsFocused(true)} - onBlur={() => setIsFocused(false)} placeholder={`${writerName}님의 피드에 댓글을 남겨보세요!`} rows={1} />