TanStack / TanStack/form

Field submit error is removed on field blur without a change

Open
#1,242 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: runtime question scope: core v1 v2
Dominant language
TypeScript
Stars
6.7k
Forks
682
Avg merge
5d 18h
Merged PRs (30d)
7

Description

Describe the bug

A submit error is removed on blur of a field when the value didn't change.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/hungry-sanderson-ycs6rd

Steps to reproduce
  1. Press submit without entering a name
  2. Focus the name input field
  3. Leave focus without a change
Expected behavior

The error which occured on submit is not removed on blur when the value during focus didn't change.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform
  • OS: WIndows
  • Browser: Chrome
TanStack Form adapter

react-form

TanStack Form version

1.0.2

TypeScript version

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox reproduction and trace the React form field blur handling for a submitted, unchanged value. Verify the behavior against the listed reproduction steps, then ensure the submit error remains after focus leaves without editing and rerun the reproduction to confirm it.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.