From 954214ff3a7800a04aee312e75f7b6826db4d839 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Wed, 5 Mar 2025 16:07:58 -0800 Subject: [PATCH 1/2] Remove 1000 character limit from textfield --- app/frontend/src/components/QuestionInput/QuestionInput.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/frontend/src/components/QuestionInput/QuestionInput.tsx b/app/frontend/src/components/QuestionInput/QuestionInput.tsx index c16ddc1be7..1a9d3309ec 100644 --- a/app/frontend/src/components/QuestionInput/QuestionInput.tsx +++ b/app/frontend/src/components/QuestionInput/QuestionInput.tsx @@ -59,8 +59,6 @@ export const QuestionInput = ({ onSend, disabled, placeholder, clearOnSend, init const onQuestionChange = (_ev: React.FormEvent, newValue?: string) => { if (!newValue) { setQuestion(""); - } else if (newValue.length <= 1000) { - setQuestion(newValue); } }; From 466c7f82afc83d8da207ea552cf21dd2d083a408 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Tue, 26 Aug 2025 12:50:58 -0700 Subject: [PATCH 2/2] Update app/frontend/src/components/QuestionInput/QuestionInput.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- app/frontend/src/components/QuestionInput/QuestionInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/components/QuestionInput/QuestionInput.tsx b/app/frontend/src/components/QuestionInput/QuestionInput.tsx index 1a9d3309ec..874fe1bdd1 100644 --- a/app/frontend/src/components/QuestionInput/QuestionInput.tsx +++ b/app/frontend/src/components/QuestionInput/QuestionInput.tsx @@ -56,9 +56,9 @@ export const QuestionInput = ({ onSend, disabled, placeholder, clearOnSend, init setIsComposing(false); }; - const onQuestionChange = (_ev: React.FormEvent, newValue?: string) => { - if (!newValue) { setQuestion(""); + } else { + setQuestion(newValue); } };