🐞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:
parent
c990f5d7d8
commit
6ee16d77a1
1 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue