From ab62ae71ead8075a13cc223cdb217961d161006d Mon Sep 17 00:00:00 2001 From: Louis-Jean Teitelbaum Date: Sat, 29 Aug 2026 20:33:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20chat=20text-area?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Whenever a character was typed, the caret would jump to the end of the textarea. Fixes #1656. --- CHANGELOG.md | 4 ++++ src/frontend/src/features/chat/components/ChatTextArea.tsx | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5a98d09..ca7b8f55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,10 @@ and this project adheres to - ♻️(backend) always finalize recordings using the LiveKit egress_ended webhook - ⬆️(frontend) upgrade posthog-js from 1.409.5 to 1.414.0 +### Fixed + +- 🐛(frontend) fix chat text-area bug + ## [1.29.0] - 2026-08-25 ### Added diff --git a/src/frontend/src/features/chat/components/ChatTextArea.tsx b/src/frontend/src/features/chat/components/ChatTextArea.tsx index d5c4fb5d..f45d9cc0 100644 --- a/src/frontend/src/features/chat/components/ChatTextArea.tsx +++ b/src/frontend/src/features/chat/components/ChatTextArea.tsx @@ -21,7 +21,9 @@ const StyledContainer = styled('div', { }) export const ChatTextArea = () => { - const { isSending, send, textAreaValue } = useSnapshot(chatStore) + const { isSending, send, textAreaValue } = useSnapshot(chatStore, { + sync: true, + }) const { t } = useTranslation('rooms', { keyPrefix: 'controls.chat.input' })