long text on enter new line

This commit is contained in:
joyal007
2023-10-06 14:24:12 +05:30
parent 105e32bf6c
commit 83a95712e4
@@ -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"></textarea>
)}
</div>