diff --git a/app/components/form/fields/NumberField.tsx b/app/components/form/fields/NumberField.tsx index 0167a5d21..7ca8da4b9 100644 --- a/app/components/form/fields/NumberField.tsx +++ b/app/components/form/fields/NumberField.tsx @@ -69,6 +69,8 @@ export const NumberFieldInner = < required, id: idProp, transform, + min, + max, }: TextFieldProps) => { const generatedId = useId() const id = idProp || generatedId @@ -90,6 +92,8 @@ export const NumberFieldInner = < aria-describedby={description ? `${id}-label-tip` : undefined} defaultValue={value} onChange={(v) => onChange(transform ? transform(v) : v)} + minValue={typeof min !== 'undefined' ? Number(min) : undefined} + maxValue={typeof max !== 'undefined' ? Number(max) : undefined} {...fieldRest} />