@tanstack/form-core
Advanced tools
Comparing version
@@ -104,5 +104,2 @@ import { Store } from "@tanstack/store"; | ||
} | ||
if (!field.instance.state.meta.isBlurred) { | ||
field.instance.setMeta((prev) => ({ ...prev, isBlurred: true })); | ||
} | ||
}); | ||
@@ -141,5 +138,2 @@ }); | ||
} | ||
if (!fieldInstance.state.meta.isBlurred) { | ||
fieldInstance.setMeta((prev) => ({ ...prev, isBlurred: true })); | ||
} | ||
return fieldInstance.validate(cause); | ||
@@ -414,3 +408,2 @@ }; | ||
isTouched: true, | ||
isBlurred: true, | ||
isDirty: true, | ||
@@ -417,0 +410,0 @@ errorMap: { |
{ | ||
"name": "@tanstack/form-core", | ||
"version": "0.40.3", | ||
"version": "0.40.4", | ||
"description": "Powerful, type-safe, framework agnostic forms.", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -630,8 +630,2 @@ import { Store } from '@tanstack/store' | ||
} | ||
// If any fields are not blurred | ||
if (!field.instance.state.meta.isBlurred) { | ||
// Mark them as blurred | ||
field.instance.setMeta((prev) => ({ ...prev, isBlurred: true })) | ||
} | ||
}) | ||
@@ -700,8 +694,2 @@ }) | ||
// If the field is not blurred (same logic as in validateAllFields) | ||
if (!fieldInstance.state.meta.isBlurred) { | ||
// Mark it as blurred | ||
fieldInstance.setMeta((prev) => ({ ...prev, isBlurred: true })) | ||
} | ||
return fieldInstance.validate(cause) | ||
@@ -1105,3 +1093,2 @@ } | ||
isTouched: true, | ||
isBlurred: true, | ||
isDirty: true, | ||
@@ -1108,0 +1095,0 @@ errorMap: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
512759
-0.48%6739
-0.37%