Skip to content

Commit

Permalink
Update submission.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiscontent authored Aug 30, 2024
1 parent c7283a4 commit 3a09eb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/conform-dom/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ export function replySubmission<FormError>(
(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) {
Expand Down

0 comments on commit 3a09eb0

Please sign in to comment.