Skip to content

issue: when using zod for date validation, an error object is not created on change, even though the mode is set to "onChange” #12294

@crypt0box

Description

@crypt0box

Version Number

7.53.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/hrl8xk?file=%2Fsrc%2FApp.tsx%3A62%2C1

Steps to reproduce

  1. Go to https://codesandbox.io/p/sandbox/hrl8xk?file=%2Fsrc%2FApp.tsx%3A62%2C1
  2. Enter "aaa" in the text field.
  3. Confirm that the validation message does not appear, even though the mode is set to onChange.

Expected behaviour

Ensure that a validation error message is immediately displayed when a string that cannot be converted to a date is entered in the text field.

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions