Skip to content

Field's isTouched state being updated without being touched #2101

@HM-23-HM

Description

@HM-23-HM

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

  1. Enter any string gte to 2 chars in length for the first name.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions