From 83a95712e4806bfe4d40aa9bf2418eba0b1eb600 Mon Sep 17 00:00:00 2001 From: joyal007 Date: Fri, 6 Oct 2023 14:24:12 +0530 Subject: [PATCH] long text on enter new line --- packages/surveys/src/components/OpenTextQuestion.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/surveys/src/components/OpenTextQuestion.tsx b/packages/surveys/src/components/OpenTextQuestion.tsx index 8e9d795520..cf98c00690 100644 --- a/packages/surveys/src/components/OpenTextQuestion.tsx +++ b/packages/surveys/src/components/OpenTextQuestion.tsx @@ -75,9 +75,6 @@ export default function OpenTextQuestion({ onInput={(e) => { onChange({ [question.id]: e.currentTarget.value }); }} - onKeyDown={(e) => { - if (e.key == "Enter") onSubmit({ [question.id]: value }); - }} className="block w-full rounded-md border border-slate-100 bg-slate-50 p-2 shadow-sm focus:border-slate-500 focus:outline-none focus:ring-0 sm:text-sm"> )}