Fixed LHS to close when changing channels (#2794)

This commit is contained in:
Harrison Healey
2016-04-25 10:46:56 -04:00
committed by Joram Wilander
parent 2337fe236e
commit 3f93aafbc6

View File

@@ -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);