diff --git a/packages/conform-dom/submission.ts b/packages/conform-dom/submission.ts index 8fcf2969..a2f28d42 100644 --- a/packages/conform-dom/submission.ts +++ b/packages/conform-dom/submission.ts @@ -247,7 +247,10 @@ export function replySubmission( (context.intent?.type === 'reset' && (context.intent.payload.name ?? '') === '') ) { - return { initialValue: null }; + return { + initialValue: null, + status: context.intent ? undefined : error ? 'error' : 'success' + }; } if ('hideFields' in options && options.hideFields) {