Skip to content

Commit

Permalink
Merge pull request #10 from solaoi/fix_limit-min-on-number-input
Browse files Browse the repository at this point in the history
fix limit min on numberinput
  • Loading branch information
solaoi authored Oct 10, 2021
2 parents 70f0ed1 + d09e11b commit e77ae8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/components/LabeledTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const LabeledTextField = forwardRef<HTMLInputElement, LabeledTextFieldPro
<FormLabel>
{label}
{props.type === "number" ? (
<NumberInput {...input} disabled={submitting} {...props} ref={ref}>
<NumberInput {...input} disabled={submitting} {...props} ref={ref} min={0}>
<NumberInputField />
<NumberInputStepper>
<NumberIncrementStepper />
Expand Down

0 comments on commit e77ae8b

Please sign in to comment.