diff --git a/frontend/src/app/boards/[boardId]/page.tsx b/frontend/src/app/boards/[boardId]/page.tsx index 0778e73..2a8874f 100644 --- a/frontend/src/app/boards/[boardId]/page.tsx +++ b/frontend/src/app/boards/[boardId]/page.tsx @@ -342,6 +342,7 @@ export default function BoardDetailPage() { const [isCommentsLoading, setIsCommentsLoading] = useState(false); const [commentsError, setCommentsError] = useState(null); const [newComment, setNewComment] = useState(""); + const taskCommentInputRef = useRef(null); const [isPostingComment, setIsPostingComment] = useState(false); const [postCommentError, setPostCommentError] = useState(null); const [isDetailOpen, setIsDetailOpen] = useState(false); @@ -1713,6 +1714,7 @@ export default function BoardDetailPage() { ); } finally { setIsPostingComment(false); + taskCommentInputRef.current?.focus(); } }; @@ -2612,8 +2614,18 @@ export default function BoardDetailPage() {