🐞Hotfix: In small screen user is not able to access sidecar (#9325)

Co-authored-by: Narender Singh <narender2031@gmail.com>
This commit is contained in:
Sarthak Sharma 2020-07-16 18:28:55 +05:30 committed by GitHub
parent c990f5d7d8
commit 6ee16d77a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -756,14 +756,14 @@ export default class Chat extends Component {
sendMessage(messageObject, this.handleSuccess, this.handleFailure);
}
};
hideChannelList = () => {
const chatContainer = document.querySelector('.chat__activechat');
chatContainer.classList.remove('chat__activechat--hidden');
};
handleSwitchChannel = (e) => {
e.preventDefault();
let { target } = e;
const chatContainer = document.querySelector('.chat__activechat');
chatContainer.classList.remove('chat__activechat--hidden');
this.hideChannelList();
if (!target.dataset.channelId) {
target = target.parentElement;
}
@ -911,6 +911,7 @@ export default class Chat extends Component {
if (content) {
e.preventDefault();
e.stopPropagation();
this.hideChannelList();
const { activeChannelId, activeChannel } = this.state;