diff --git a/packages/conform-zod/coercion.ts b/packages/conform-zod/coercion.ts index 6f38926b..992b960a 100644 --- a/packages/conform-zod/coercion.ts +++ b/packages/conform-zod/coercion.ts @@ -121,7 +121,7 @@ export function enableTypeCoercion( .pipe(type); } else if (type instanceof ZodNumber) { schema = any() - .transform((value) => coerceString(value, parseInt)) + .transform((value) => coerceString(value, parseFloat)) .pipe(type); } else if (type instanceof ZodBoolean) { schema = any()