From 7e5d7e00b72f8243d922925e4aa92cdcab667d37 Mon Sep 17 00:00:00 2001 From: rasulov1337 <117843890+rasulov1337@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:51:04 +0300 Subject: [PATCH] fix: scroll to the bottom on message send --- src/components/ChatWindow/ChatWindow.ts | 46 +++++++++++++++---------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/src/components/ChatWindow/ChatWindow.ts b/src/components/ChatWindow/ChatWindow.ts index 7da84018..b2c9716b 100644 --- a/src/components/ChatWindow/ChatWindow.ts +++ b/src/components/ChatWindow/ChatWindow.ts @@ -64,7 +64,6 @@ export default class ChatWindow extends BaseComponent { socket.onopen = (e) => { console.log('[open] Соединение установлено'); - console.log('Отправляем данные на сервер'); }; socket.onmessage = (e) => this.handleMessageReceive(e); @@ -99,6 +98,7 @@ export default class ChatWindow extends BaseComponent { '.js-message-input' ) as HTMLInputElement; + /** Resizes