From a0c84d0e50529c8880516aca479d19cde93d5238 Mon Sep 17 00:00:00 2001 From: sBouzols Date: Thu, 5 Feb 2026 15:20:35 +0100 Subject: [PATCH] fix(TextInput): Do not add helperText if no `previousValue` otherwise a

wrapper is added and visible in the DOM Signed-off-by: sBouzols --- .../inputs/reactHookForm/text/TextInput.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/inputs/reactHookForm/text/TextInput.tsx b/src/components/inputs/reactHookForm/text/TextInput.tsx index 83841d4d..9c5aaaeb 100644 --- a/src/components/inputs/reactHookForm/text/TextInput.tsx +++ b/src/components/inputs/reactHookForm/text/TextInput.tsx @@ -123,12 +123,14 @@ export function TextInput({ handleClearValue, })} helperText={ - + previousValue && ( + + ) } {...genHelperError(error?.message)} {...formProps}