diff --git a/src/components/Form/FormInput.tsx b/src/components/Form/FormInput.tsx index bd61a3f2..af69d882 100644 --- a/src/components/Form/FormInput.tsx +++ b/src/components/Form/FormInput.tsx @@ -11,6 +11,7 @@ export interface InputFieldProps extends BaseFormBuilderProps { properties?: { prefix?: string; suffix?: string; + step?: number; action?: { icon: LucideIcon; onClick: () => void; @@ -30,11 +31,12 @@ export function GenericInput({ render={({ field: { value, onChange, ...rest } }) => ( onChange( field.type === "number" - ? parseInt(e.target.value) + ? Number.parseInt(e.target.value) : e.target.value, ) }