diff --git a/packages/conform-dom/submission.ts b/packages/conform-dom/submission.ts index 8ea699bc..841819b6 100644 --- a/packages/conform-dom/submission.ts +++ b/packages/conform-dom/submission.ts @@ -542,7 +542,10 @@ export function serialize(defaultValue: Schema): FormValue { } else if (typeof defaultValue === 'boolean') { // @ts-expect-error FIXME return defaultValue ? 'on' : undefined; - } else if (typeof defaultValue === 'number') { + } else if ( + typeof defaultValue === 'number' || + typeof defaultValue === 'bigint' + ) { // @ts-expect-error FIXME return defaultValue.toString(); } else {