From a7cc163ca1d256546d7765cdc782cc76298abfa8 Mon Sep 17 00:00:00 2001 From: Vedanta Somnathe Date: Fri, 7 Mar 2025 18:52:03 -0600 Subject: [PATCH] added a check for dirty to maintain the errors after blur --- packages/form-core/src/FieldApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/form-core/src/FieldApi.ts b/packages/form-core/src/FieldApi.ts index ca08c40d2..38035ea5f 100644 --- a/packages/form-core/src/FieldApi.ts +++ b/packages/form-core/src/FieldApi.ts @@ -1347,7 +1347,8 @@ export class FieldApi< if ( this.state.meta.errorMap[submitErrKey] && cause !== 'submit' && - !hasErrored + !hasErrored && + this.state.meta.isDirty ) { this.setMeta((prev) => ({ ...prev,