Skip to content

First input ignored after action completes #1307

Closed

Description

@aaronfulkerson

Describe the bug

After submitting the form and the action returns, the first input on the form is ignored.

Your minimal, reproducible example

https://github.com/aaronfulkerson/tanstack-form-validation

Steps to reproduce

  1. Don't enter any values
  2. Hit submit
  3. Wait for the action to complete (3 seconds in the repo provided)
  4. Attempt to add a value to the form

Expected behavior

As a user I expected the form to respond to my input but instead the first input is ignored.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • macOS 15.3.2
  • Arc
  • 1.86

TanStack Form adapter

react-form

TanStack Form version

1.1.0

TypeScript version

5.8.2

Additional context

No response

Activity

  1. MVaik commented on Mar 21, 2025

    @MVaik

    The serverValidate method returns the old values as part of the error, which get merged back over your changed state in transform.
    Unsure why it is done this way but you can delete state.values in the transform method as a short-term fix.

  2. aaronfulkerson commented on Mar 22, 2025

    @aaronfulkerson
    Author

    Why does that prevent the form from receiving user input?

  3. MVaik commented on Mar 29, 2025

    @MVaik

    The form receives user input, the error result just overwrites it.

  4. aaronfulkerson commented on Mar 29, 2025

    @aaronfulkerson
    Author

    The form receives user input, the error result just overwrites it.

    No, brother. That’s why I say “wait for the action to complete”. Try it.

  5. MVaik commented on Apr 5, 2025

    @MVaik

    Alright I get what you meant, but the reason is the same, the error result that has empty fields gets merged over state on first keypress for some reason.

  6. harry-whorlow commented on Apr 10, 2026

    @harry-whorlow
    Contributor

    This looks to be completed in #1890, so I'm going to close this issue. If the problem persists please reopen it 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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