summaryrefslogtreecommitdiffstats
path: root/webapp/components/sidebar.jsx
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-05-27 08:46:52 -0700
committerenahum <nahumhbl@gmail.com>2016-05-27 12:46:52 -0300
commita9a0e1f6db7384c22c2dba7dbb95c385590c2c61 (patch)
tree59ceb562b60f684b5184631e3da1b88d3ff82be4 /webapp/components/sidebar.jsx
parent24590b3e896ef36268c4afc9d30674a490c4e5f8 (diff)
downloadchat-a9a0e1f6db7384c22c2dba7dbb95c385590c2c61.tar.gz
chat-a9a0e1f6db7384c22c2dba7dbb95c385590c2c61.tar.bz2
chat-a9a0e1f6db7384c22c2dba7dbb95c385590c2c61.zip
Forced navbar scroll to top on update (#3139)
Diffstat (limited to 'webapp/components/sidebar.jsx')
-rw-r--r--webapp/components/sidebar.jsx3
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');