From 53c25a5689cb3cdb8239bbac14feb74f7fc48d65 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 21 Apr 2023 18:56:23 -0400 Subject: [PATCH] fix: Scroll to end of comment thread, not start --- app/scenes/Document/components/CommentThread.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Document/components/CommentThread.tsx b/app/scenes/Document/components/CommentThread.tsx index 8a9ef87e2..21b28ab1d 100644 --- a/app/scenes/Document/components/CommentThread.tsx +++ b/app/scenes/Document/components/CommentThread.tsx @@ -116,7 +116,7 @@ function CommentThread({ scrollIntoView(topRef.current, { scrollMode: "if-needed", behavior: "smooth", - block: "start", + block: "end", boundary: (parent) => // Prevents body and other parent elements from being scrolled parent.id !== "comments",