diff options
author | Dessalines <tyhou13@gmx.com> | 2019-05-02 15:16:38 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-05-02 15:16:38 -0700 |
commit | 9903e3d508537e6912e38f61739971af1949f25e (patch) | |
tree | 71f742acbbe21d7df2c3e14f23c829adbf4b5987 /ui/src/components/community.tsx | |
parent | 820af563879fbf945092d2230f1e2fde0c860ca0 (diff) |
Fix scrolling issue on refetch.
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r-- | ui/src/components/community.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index 93cdbd92..28841a2e 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -215,6 +215,7 @@ export class Community extends Component<any, State> { 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; |