Skip to content

DateField: onChange not called on blur when date is invalid or incomplete #9624

@pudek357

Description

@pudek357

Provide a general summary of the issue here

According to #9510, invalid or incomplete date values should not be emitted via onChange while typing, but should be emitted when the user blurs the field.
However, when the user blurs the field with an invalid or incomplete date, onChange is not called at all.

🤔 Expected Behavior?

  • User enters valid date.
  • User removes one of the segment (date become invalid)
  • User blurs from the field
  • onChange is called.

😯 Current Behavior

  • User enters valid date.
  • User removes one of the segment (date become invalid)
  • User blurs from the field
  • onChange is not called.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Add console log to onChange to TimeField example in https://react-aria.adobe.com/TimeField and test repro steps above, or use this link: https://stackblitz.com/edit/hazsexms-xrw2sxau?file=src%2FExample.tsx

Screen.Recording.2026-02-09.at.14.31.09.mov

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