summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/src/components/forms/TimeOffsetForm.tsx19
1 files changed, 16 insertions, 3 deletions
diff --git a/frontend/src/components/forms/TimeOffsetForm.tsx b/frontend/src/components/forms/TimeOffsetForm.tsx
index b02e75781..6d213b359 100644
--- a/frontend/src/components/forms/TimeOffsetForm.tsx
+++ b/frontend/src/components/forms/TimeOffsetForm.tsx
@@ -83,12 +83,25 @@ const TimeOffsetForm: FunctionComponent<Props> = ({ selections, onSubmit }) => {
></FontAwesomeIcon>
</Button>
<NumberInput
+ min={0}
label="hour"
{...form.getInputProps("hour")}
></NumberInput>
- <NumberInput label="min" {...form.getInputProps("min")}></NumberInput>
- <NumberInput label="sec" {...form.getInputProps("sec")}></NumberInput>
- <NumberInput label="ms" {...form.getInputProps("ms")}></NumberInput>
+ <NumberInput
+ min={0}
+ label="min"
+ {...form.getInputProps("min")}
+ ></NumberInput>
+ <NumberInput
+ min={0}
+ label="sec"
+ {...form.getInputProps("sec")}
+ ></NumberInput>
+ <NumberInput
+ min={0}
+ label="ms"
+ {...form.getInputProps("ms")}
+ ></NumberInput>
</Group>
<Divider></Divider>
<Button disabled={!enabled} type="submit">