Fix comment scrolling bug. Fixes #394 (#397)

This commit is contained in:
Dessalines 2021-09-04 01:20:34 -04:00 committed by GitHub
parent a19c84c03e
commit 6091f07d20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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