diff options
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Feeds.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index f7abd3992..f0a3c523d 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 || {}); |