Update bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-form/component.tsx
This commit is contained in:
parent
65a3e00fbb
commit
5952faefee
@ -297,7 +297,10 @@ const ChatMessageForm: React.FC<ChatMessageFormProps> = ({
|
||||
document.addEventListener('click', (event) => {
|
||||
const chatList = document.getElementById('chat-list');
|
||||
if (chatList?.contains(event.target as Node)) {
|
||||
textAreaRef.current?.textarea.focus();
|
||||
const selection = window.getSelection()?.toString();
|
||||
if (selection?.length === 0) {
|
||||
textAreaRef.current?.textarea.focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user