form icon indicating copy to clipboard operation
form copied to clipboard

Validation does not work fine for a form field without an associated component

Open Jaime02 opened this issue 1 month ago • 0 comments

Describe the bug

Hello, I am using a form with a field which is not associated to a <form.AppField> component. Initially, I am getting a validation error, which is correct. Then I change the field value using form.setFieldValue to a valid value, but the form validation error is still there.

Your minimal, reproducible example

https://stackblitz.com/edit/tanstack-form-kurxzdck?file=src%2Findex.tsx

Steps to reproduce

  1. Create a form. Add a field without an associated component.
  2. The form validation will not work fine, changing the field value using form.setFieldValue will not update the form validation state properly–

Expected behavior

A form field should not require an associated component for the validation to work properly

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Windows Chrome @tanstack/[email protected]

TanStack Form adapter

None

TanStack Form version

1.23.8

TypeScript version

No response

Additional context

No response

Jaime02 avatar Nov 19 '25 21:11 Jaime02