diff options
author | Adam Blahovič <[email protected]> | 2023-09-05 20:20:33 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-05 14:20:33 -0400 |
commit | 1489926b6f52e8881e45773486fe2530d5dfeca9 (patch) | |
tree | 8bc3d942e0ef3f549f94d6d205ce8621389c1016 | |
parent | 77283e406371c8049f6bc3c92a4fe2ac02b4db25 (diff) | |
download | bazarr-1489926b6f52e8881e45773486fe2530d5dfeca9.tar.gz bazarr-1489926b6f52e8881e45773486fe2530d5dfeca9.zip |
Fixed minimal value for time offset input field
-rw-r--r-- | frontend/src/components/forms/TimeOffsetForm.tsx | 19 |
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"> |