aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Thread.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-30 21:03:54 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitfdc4dfab90072da4b0e585661988cde24be77649 (patch)
treeeabe4560961671ecc25968c8611c2367e1b37c6c /vnext/src/components/Thread.js
parent9efaac1e0f6863f9791465ecca07cc57be35b21c (diff)
Revert some bad
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 2c88abc3..f94ad358 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -32,6 +32,8 @@ export default class Thread extends React.Component {
this.loadReplies();
}
loadReplies() {
+ document.body.scrollTop = 0;
+ document.documentElement.scrollTop = 0;
this.setState({ replies: [], loading: true });
const { mid } = this.props.match.params;
let params = {