From cafc0a266de0f86eb3e70725ce59d2afcfd740d3 Mon Sep 17 00:00:00 2001 From: Andreas Weyer Date: Tue, 10 Feb 2026 18:39:03 +0000 Subject: [PATCH] Fix FormNumericInput incorrect border highlighting (warn/error) and default error message text --- src/components/ui/form-numeric-input.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/components/ui/form-numeric-input.tsx b/src/components/ui/form-numeric-input.tsx index b3c7b01..126d2a6 100644 --- a/src/components/ui/form-numeric-input.tsx +++ b/src/components/ui/form-numeric-input.tsx @@ -50,7 +50,7 @@ const FormNumericInput = React.forwardRef( error = false, warning = false, required = false, - errorMessage = 'Time is required', + errorMessage = 'Value is required', warningMessage, inputWidth = 'w-20', // Default width className, @@ -221,11 +221,7 @@ const FormNumericInput = React.forwardRef( type="button" variant="outline" size="icon" - className={cn( - "h-9 w-9 rounded-l-none rounded-r-none border-l-0", - //hasError && "error-border", - //hasWarning && !hasError && "warning-border" - )} + className="h-9 w-9 rounded-l-none rounded-r-none border-l-0" onClick={() => updateValue(-1)} disabled={isAtMin} tabIndex={-1} @@ -255,11 +251,7 @@ const FormNumericInput = React.forwardRef( tooltip={t('buttonResetToDefault')} variant="outline" size="icon" - className={cn( - "h-9 w-9 rounded-l-none", - hasError && "error-border", - hasWarning && !hasError && "warning-border" - )} + className="h-9 w-9 rounded-l-none" onClick={() => onChange(String(defaultValue ?? ''))} tabIndex={-1} />