From a9a0e1f6db7384c22c2dba7dbb95c385590c2c61 Mon Sep 17 00:00:00 2001 From: David Lu Date: Fri, 27 May 2016 08:46:52 -0700 Subject: Forced navbar scroll to top on update (#3139) --- webapp/components/sidebar.jsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webapp') 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'); -- cgit v1.2.3-1-g7c22