TanStack / TanStack/form

canSubmit is true when the form is touched but an invalid onChange field is not touched

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

Nobody has claimed this yet.

v1 v2
Dominant language
TypeScript
Stars
6.7k
Forks
682
Avg merge
5d 18h
Merged PRs (30d)
7

Description

Describe the bug

According to the docs, "canSubmit is true until the form has been touched, even if some fields are "technically" invalid based on their onChange/onBlur props". As far as I understand, field-level validations will only change canSubmit when that field has been touched, whereas form-level validations will affect canSubmit when any field has been touched. It would be helpful if this distinction could be made clear in the docs.

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 by locating the documentation for canSubmit, especially the sections describing onChange/onBlur validation and touched fields. Clarify how field-level and form-level validations affect canSubmit, and consider the work done when the documented distinction matches the behavior described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.