Этот коммит содержится в:
David Lu
2016-05-31 05:13:43 -07:00
коммит произвёл Joram Wilander
родитель db2ca26a02
Коммит f920b80e54

Просмотреть файл

@@ -169,6 +169,12 @@ export default class Sidebar extends React.Component {
$('.sidebar--left .nav-pills__container').perfectScrollbar();
}
// reset the scrollbar upon switching teams
if (this.state.currentTeam !== prevState.currentTeam) {
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');