Skip to content

Hidden field doesn't show errors on mount #1630

@marc-at-brightnight

Description

@marc-at-brightnight

Describe the bug

I have my form fields in a Popper, meaning my form object mounts before my fields. This leads to the situation where the field level errors are not displayed when the popper opens. There may be a simple solution to this but I've been playing around and haven't found yet. Any help would be appreciated.

Your minimal, reproducible example

https://stackblitz.com/edit/vitejs-vite-8bcuwtpv?file=src%2FApp.tsx

Steps to reproduce

  1. hit "show field"
  2. observe no red text below input field
  3. type and clear out text
  4. red error will appear

Expected behavior

I expect the red text to appear immediately after clicking show field

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

  • macOS
  • brave 1.78.97

TanStack Form adapter

None

TanStack Form version

1.14.2

TypeScript version

No response

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