diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-23 12:09:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 12:09:56 -0400 |
commit | ca8d57c4dbfe839db28b583caa7d599c0cfc023a (patch) | |
tree | 0a4fc6eabf8b8d7f87fdb687b03cc4da7e48d2c3 /webapp/components/rhs_thread/rhs_thread.jsx | |
parent | b01da39887b990b8c57484f53643a3c0ea5d531b (diff) | |
download | chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.tar.gz chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.tar.bz2 chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.zip |
PLT-6890 Fix various scrolling issues (#6727)
* Fix various scrolling issues
* Move reaction scrolling to reaction list
* Handle scrolling when RHS opens
* Only run scroll update code when posts change
Diffstat (limited to 'webapp/components/rhs_thread/rhs_thread.jsx')
-rw-r--r-- | webapp/components/rhs_thread/rhs_thread.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/rhs_thread/rhs_thread.jsx b/webapp/components/rhs_thread/rhs_thread.jsx index f4e7b33fa..50f5f0aa3 100644 --- a/webapp/components/rhs_thread/rhs_thread.jsx +++ b/webapp/components/rhs_thread/rhs_thread.jsx @@ -124,8 +124,8 @@ export default class RhsThread extends React.Component { this.mounted = false; } - componentDidUpdate(prevProps, prevState) { - const prevPostsArray = prevState.postsArray || []; + componentDidUpdate(prevProps) { + const prevPostsArray = prevProps.posts || []; const curPostsArray = this.props.posts || []; if (prevPostsArray.length >= curPostsArray.length) { |