aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments/CommentsContainer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/comments/CommentsContainer.tsx')
-rw-r--r--src/components/comments/CommentsContainer.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/comments/CommentsContainer.tsx b/src/components/comments/CommentsContainer.tsx
index d2f11b96..a0e94828 100644
--- a/src/components/comments/CommentsContainer.tsx
+++ b/src/components/comments/CommentsContainer.tsx
@@ -65,8 +65,9 @@ const CommentsContainer: React.FC<CommentsContainerProps> = ({
);
setInitialIndex(index);
} else {
- setInitialIndex(commentsList.length - 1);
- ref.current?.scrollToEnd({animated: true});
+ setTimeout(() => {
+ ref.current?.scrollToEnd({animated: true});
+ }, 500);
}
}
}