diff options
-rw-r--r-- | vnext/src/components/Feeds.js | 2 | ||||
-rw-r--r-- | vnext/src/components/Thread.js | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index 0c8f46aeb..b70720ac1 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -22,6 +22,8 @@ class Feed extends React.Component { this.loadMessages = this.loadMessages.bind(this); } componentDidMount() { + document.body.scrollTop = 0; + document.documentElement.scrollTop = 0; this.loadMessages(this.props.visitor.hash); } componentWillReceiveProps(nextProps) { diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index 9b26e378a..f5b5efe69 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() { |