From caaacc6dbfc6a70ddef641eea92529cfd44550df Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 18 Jun 2018 18:50:59 +0300 Subject: scrollTop on refresh --- vnext/src/components/Thread.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vnext/src/components/Thread.js') 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() { -- cgit v1.2.3