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 }), });