Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: fixed the issue where spaces could not be entered in the message… (#1320)

balibabu751447bd4fb3
diff --git a/web/src/pages/chat/hooks.ts b/web/src/pages/chat/hooks.ts
index c8d2b17c05..8e3441e54d 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<HTMLInputElement> = (e) => {
const value = e.target.value;
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
- setValue(trim(nextValue));
+ setValue(nextValue);
};
return {