Fixed LHS to close when changing channels (#2794)

Этот коммит содержится в:
Harrison Healey
2016-04-25 10:46:56 -04:00
коммит произвёл Joram Wilander
родитель 2337fe236e
Коммит 3f93aafbc6

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

@@ -168,6 +168,10 @@ export default class Sidebar extends React.Component {
if (!Utils.isMobile()) {
$('.sidebar--left .nav-pills__container').perfectScrollbar();
}
// close the LHS on mobile when you change channels
$('.app__body .inner-wrap').removeClass('move--right');
$('.app__body .sidebar--left').removeClass('move--right');
}
componentWillUnmount() {
window.removeEventListener('resize', this.handleResize);