summaryrefslogtreecommitdiffstats
path: root/ui/src/components/modlog.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-05-02 15:16:38 -0700
committerDessalines <tyhou13@gmx.com>2019-05-02 15:16:38 -0700
commit9903e3d508537e6912e38f61739971af1949f25e (patch)
tree71f742acbbe21d7df2c3e14f23c829adbf4b5987 /ui/src/components/modlog.tsx
parent820af563879fbf945092d2230f1e2fde0c860ca0 (diff)
Fix scrolling issue on refetch.
Diffstat (limited to 'ui/src/components/modlog.tsx')
-rw-r--r--ui/src/components/modlog.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/modlog.tsx b/ui/src/components/modlog.tsx
index 853bdd20..894887ae 100644
--- a/ui/src/components/modlog.tsx
+++ b/ui/src/components/modlog.tsx
@@ -228,6 +228,7 @@ export class Modlog extends Component<any, ModlogState> {
} else if (op == UserOperation.GetModlog) {
let res: GetModlogResponse = msg;
this.state.loading = false;
+ window.scrollTo(0,0);
this.setCombined(res);
}
}