diff options
author | David Lu <david.lu@hotmail.com> | 2016-05-27 08:46:52 -0700 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-05-27 12:46:52 -0300 |
commit | a9a0e1f6db7384c22c2dba7dbb95c385590c2c61 (patch) | |
tree | 59ceb562b60f684b5184631e3da1b88d3ff82be4 /webapp/components | |
parent | 24590b3e896ef36268c4afc9d30674a490c4e5f8 (diff) | |
download | chat-a9a0e1f6db7384c22c2dba7dbb95c385590c2c61.tar.gz chat-a9a0e1f6db7384c22c2dba7dbb95c385590c2c61.tar.bz2 chat-a9a0e1f6db7384c22c2dba7dbb95c385590c2c61.zip |
Forced navbar scroll to top on update (#3139)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/sidebar.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx index d20fef603..be0fb205b 100644 --- a/webapp/components/sidebar.jsx +++ b/webapp/components/sidebar.jsx @@ -169,6 +169,9 @@ export default class Sidebar extends React.Component { $('.sidebar--left .nav-pills__container').perfectScrollbar(); } + this.refs.container.scrollTop = 0; + $('.nav-pills__container').perfectScrollbar('update'); + // close the LHS on mobile when you change channels if (this.state.activeId !== prevState.activeId) { $('.app__body .inner-wrap').removeClass('move--right'); |