fix: Scroll to end of comment thread, not start

This commit is contained in:
Tom Moor
2023-04-21 18:56:23 -04:00
parent 3e5cd9eb3c
commit 53c25a5689

View File

@@ -116,7 +116,7 @@ function CommentThread({
scrollIntoView(topRef.current, { scrollIntoView(topRef.current, {
scrollMode: "if-needed", scrollMode: "if-needed",
behavior: "smooth", behavior: "smooth",
block: "start", block: "end",
boundary: (parent) => boundary: (parent) =>
// Prevents body and other parent elements from being scrolled // Prevents body and other parent elements from being scrolled
parent.id !== "comments", parent.id !== "comments",