From 751447bd4fb375a65a4669ec390f488bafb31e02 Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 28 Jun 2024 17:32:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fixed=20the=20issue=20where=20spaces=20c?= =?UTF-8?q?ould=20not=20be=20entered=20in=20the=20message=E2=80=A6=20(#132?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem does this PR solve? fix: fixed the issue where spaces could not be entered in the message input box #1314 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/chat/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/chat/hooks.ts b/web/src/pages/chat/hooks.ts index c8d2b17c0..8e3441e54 100644 --- a/web/src/pages/chat/hooks.ts +++ b/web/src/pages/chat/hooks.ts @@ -533,7 +533,7 @@ export const useHandleMessageInputChange = () => { const handleInputChange: ChangeEventHandler = (e) => { const value = e.target.value; const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t'); - setValue(trim(nextValue)); + setValue(nextValue); }; return {