aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/components/Feeds.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index f7abd399..f0a3c523 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -56,8 +56,6 @@ 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, this.props.location.search);
}
componentWillReceiveProps(nextProps) {
@@ -67,6 +65,8 @@ class Feed extends React.Component {
}
}
loadMessages(hash = '', filter = '') {
+ document.body.scrollTop = 0;
+ document.documentElement.scrollTop = 0;
this.setState({ msgs: [] })
const filterParams = qs.parse(filter);
let params = Object.assign({}, filterParams || {}, this.props.query.search || {});