From 415ac1b926cb80934d75858f163f563a5da19598 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 26 Feb 2024 22:09:12 +0100 Subject: [PATCH] Fixed multiline text --- .../components/textAreaComponent/index.tsx | 72 +++++++++---------- 1 file changed, 33 insertions(+), 39 deletions(-) diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx index 39d57ebf3..7b41f3757 100644 --- a/src/frontend/src/components/textAreaComponent/index.tsx +++ b/src/frontend/src/components/textAreaComponent/index.tsx @@ -20,48 +20,42 @@ export default function TextAreaComponent({ }, [disabled]); return ( -
- { - onChange(value); - }} - > -
- +
+ { + onChange(event.target.value); + }} + /> +
+ { - onChange(event.target.value); + setValue={(value: string) => { + onChange(value); }} - /> - {!editNode && ( - - )} + > + {!editNode && ( + + )} +
- +
); }