mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixed LHS to close when changing channels (#2794)
This commit is contained in:
committed by
Joram Wilander
parent
2337fe236e
commit
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);
|
||||
|
||||
Reference in New Issue
Block a user