Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix: allow delete of last char while submitting

Wentao Lyuce78123369c6
diff --git a/client/src/components/Main/TextChat.jsx b/client/src/components/Main/TextChat.jsx
index 0038f37a7a..969a6222ac 100644
--- a/client/src/components/Main/TextChat.jsx
+++ b/client/src/components/Main/TextChat.jsx
@@ -317,9 +317,9 @@ export default function TextChat({ messages }) {
const changeHandler = (e) => {
const { value } = e.target;
- if (isSubmitting && (value === '' || value === '\n')) {
- return;
- }
+ // if (isSubmitting && (value === '' || value === '\n')) {
+ // return;
+ // }
dispatch(setText(value));
};