From 627d97b5844e02445975721e778f1077135fb551 Mon Sep 17 00:00:00 2001 From: bae-sh Date: Mon, 1 Jan 2024 22:19:52 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=8C=93=EA=B8=80=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=20=ED=9B=84=20=ED=95=B4=EB=8B=B9=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=8A=A4=ED=81=AC=EB=A1=A4=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/common/Post/CommentUpload/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/common/Post/CommentUpload/index.tsx b/client/src/components/common/Post/CommentUpload/index.tsx index 37ddf4df..33f0d02b 100644 --- a/client/src/components/common/Post/CommentUpload/index.tsx +++ b/client/src/components/common/Post/CommentUpload/index.tsx @@ -61,7 +61,10 @@ export default function CommentUpload({ user }: IComentUpload) { return; } mutate(content, { - onSuccess: resetForm, + onSuccess: () => { + resetForm(); + setTimeout(() => window.scrollTo(0, document.body.scrollHeight), 100); + }, onError: () => openModal({ type: ModalType.ERROR, message: errorMessage.tryAgain }), });