From 97219bd73bf2620237a947f21768e322d3671724 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Mar 2021 11:38:37 -0400 Subject: [PATCH] Fix restore scroll position. Fixes #227 --- src/shared/components/post.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post.tsx b/src/shared/components/post.tsx index c2ef814c..e27a73dd 100644 --- a/src/shared/components/post.tsx +++ b/src/shared/components/post.tsx @@ -463,7 +463,7 @@ export class Post extends Component { this.fetchCrossPosts(); this.setState(this.state); setupTippy(); - restoreScrollPosition(this.context); + if (!this.state.commentId) restoreScrollPosition(this.context); } else if (op == UserOperation.CreateComment) { let data = wsJsonToRes(msg).data;