Fix restore scroll position. Fixes #227

This commit is contained in:
Dessalines 2021-03-25 11:38:37 -04:00
parent c23e494dd4
commit 97219bd73b

View file

@ -463,7 +463,7 @@ export class Post extends Component<any, PostState> {
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<CommentResponse>(msg).data;