]> Untitled Git - lemmy-ui.git/commitdiff
Fix comment scrolling bug. Fixes #394 (#397)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 4 Sep 2021 05:20:34 +0000 (01:20 -0400)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 05:20:34 +0000 (01:20 -0400)
src/shared/components/post/post.tsx

index 3186242a970c58fa7705822f8874fdc24bb9459f..f876ec37ba28084652e1b761a9cf3b227755efcb 100644 (file)
@@ -192,10 +192,6 @@ export class Post extends Component<any, PostState> {
       this.scrollCommentIntoView();
     }
 
-    if (this.checkScrollIntoCommentsParam) {
-      this.scrollIntoCommentSection();
-    }
-
     // Necessary if you are on a post and you click another post (same route)
     if (_lastProps.location.pathname !== _lastProps.history.location.pathname) {
       // TODO Couldnt get a refresh working. This does for now.