Skip to content

isDefaultValue not updating when changing date field #1712

Description

@marc-niclas

Describe the bug

On changing a date field, it seems tanstack is not changing isDefaultValue to false, as I would expect.

Your minimal, reproducible example

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

Steps to reproduce

  1. Change the date
  2. Observe equality check is false and isPristine is false
  3. isDefaultValue is still true
  4. Changing the text field however does change isDefaultValue to false

Expected behavior

Changing a date field should change isDefaultValue to false

How often does this bug happen?

Every time

Screenshots or Videos

Image

Platform

  • macOS 15.5
  • chrome/brave

TanStack Form adapter

None

TanStack Form version

1.19.2

TypeScript version

No response

Additional context

No response

Activity

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

    type: bugThis is a bug in behaviour.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions