-
-
Notifications
You must be signed in to change notification settings - Fork 607
Field's isTouched state being updated without being touched #2101
Copy link
Copy link
Open
Description
Describe the bug
I'm building a multi-step form, and when I press the 'Next' button the isTouched state for the field in the second step of the form changes from false to true after being rendered, and without the field being touched. This happens with or without inter-step validation. What am I missing?
Your minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-rkntekfw?file=src%2FApp.tsx
Steps to reproduce
- Enter any string gte to 2 chars in length for the first name.
- Press "Next".
Expected behavior
I'm expecting isTouched to remain false for the field in the second step of the form.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
OS: Windows, Browser: Google Chrome and Microsoft Edge
TanStack Form adapter
react-form
TanStack Form version
1.28.5
TypeScript version
5.9.3
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels