diff options
Diffstat (limited to 'vnext/src')
-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 538bfe7b..55a4c287 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -81,6 +81,8 @@ function Feed(props) { }, [props.visitor, props.location]); let loadMessages = (hash = '', filter = '') => { + document.body.scrollTop = 0; + document.documentElement.scrollTop = 0; setMsgs([]); const filterParams = qs.parse(filter); let params = Object.assign({}, filterParams || {}, props.query.search || {}); 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 = { |