diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/post_view/components/post_list.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx index 29358122b..06542d39c 100644 --- a/webapp/components/post_view/components/post_list.jsx +++ b/webapp/components/post_view/components/post_list.jsx @@ -421,6 +421,11 @@ export default class PostList extends React.Component { this.scrollToBottom(); } }); + + // This avoids the scroll jumping from top to bottom after the page has rendered (PLT-5025). + if (!this.refs.newMessageSeparator) { + this.scrollToBottom(); + } } else if (this.props.scrollType === ScrollTypes.POST && this.props.scrollPostId) { window.requestAnimationFrame(() => { const postNode = ReactDOM.findDOMNode(this.refs[this.props.scrollPostId]); |