diff options
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r-- | ui/src/components/main.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index cd679ecb..1ec016ea 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -383,6 +383,7 @@ export class Main extends Component<any, MainState> { let res: GetPostsResponse = msg; this.state.posts = res.posts; this.state.loading = false; + window.scrollTo(0,0); this.setState(this.state); } else if (op == UserOperation.CreatePostLike) { let res: CreatePostLikeResponse = msg; |