aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Thread.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-18 18:50:59 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commitcaaacc6dbfc6a70ddef641eea92529cfd44550df (patch)
tree0c5819ff4c40d1e1b1bd2876d4aed4912025de0b /vnext/src/components/Thread.js
parent66673734912b86052fc538e575945d20f72d54df (diff)
scrollTop on refresh
Diffstat (limited to 'vnext/src/components/Thread.js')
-rw-r--r--vnext/src/components/Thread.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js
index 9b26e378..f5b5efe6 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -18,6 +18,8 @@ export default class Thread extends React.Component {
this.loaded = this.loaded.bind(this);
}
componentDidMount() {
+ document.body.scrollTop = 0;
+ document.documentElement.scrollTop = 0;
this.loadReplies();
}
loadReplies() {