From 24be4ced752ac0de6c9bec328251a5cc79cbfaad Mon Sep 17 00:00:00 2001 From: Lily Cooksley Date: Tue, 21 May 2024 14:19:57 +0100 Subject: [PATCH] remove error validation --- packages/lab/src/stepper-input/useStepperInput.ts | 6 ------ .../lab/stories/stepper-input/stepper-input.stories.tsx | 9 --------- 2 files changed, 15 deletions(-) diff --git a/packages/lab/src/stepper-input/useStepperInput.ts b/packages/lab/src/stepper-input/useStepperInput.ts index b5af8d9c861..a2241579417 100644 --- a/packages/lab/src/stepper-input/useStepperInput.ts +++ b/packages/lab/src/stepper-input/useStepperInput.ts @@ -233,12 +233,6 @@ export const useStepperInput = ( onChange: callAll(inputProps.onChange, handleInputChange), onFocus: inputProps.onFocus, onKeyDown: callAll(inputProps.onKeyDown, handleInputKeyDown), - validationStatus: - inputProps.validationStatus !== undefined - ? inputProps.validationStatus - : isOutOfRange() - ? "error" - : undefined, value: String(currentValue), }; }; diff --git a/packages/lab/stories/stepper-input/stepper-input.stories.tsx b/packages/lab/stories/stepper-input/stepper-input.stories.tsx index b5e9c68008b..9868113bdd1 100644 --- a/packages/lab/stories/stepper-input/stepper-input.stories.tsx +++ b/packages/lab/stories/stepper-input/stepper-input.stories.tsx @@ -45,15 +45,6 @@ export const DecimalPlaces: StoryFn = (args) => { }; export const MinAndMaxValue: StoryFn = (args) => { - return ( -
- Enter a value between 0 and 5 - -
- ); -}; - -export const ControlledMinAndMaxValue: StoryFn = (args) => { const [value, setValue] = useState(2); const max = 5; const min = 0;