Skip to content

Commit

Permalink
remove error validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyvc committed May 21, 2024
1 parent 75791f6 commit 24be4ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions packages/lab/src/stepper-input/useStepperInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
};
Expand Down
9 changes: 0 additions & 9 deletions packages/lab/stories/stepper-input/stepper-input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ export const DecimalPlaces: StoryFn = (args) => {
};

export const MinAndMaxValue: StoryFn = (args) => {
return (
<div>
<Text>Enter a value between 0 and 5</Text>
<StepperInput {...args} max={5} min={0} style={{ width: "250px" }} />
</div>
);
};

export const ControlledMinAndMaxValue: StoryFn = (args) => {
const [value, setValue] = useState<number | string>(2);
const max = 5;
const min = 0;
Expand Down

0 comments on commit 24be4ce

Please sign in to comment.