Skip to content

DatePicker does not recognize dates after year 9999 #5022

@eberleant

Description

@eberleant

Description

The DatePicker in Vaadin 23.2.8 doesn't seem to recognize dates after year 9999. For example, if I type 01/01/10000 in the input, the value in the DatePicker is null. If the field isn't attached to a binder, it will also style itself as invalid.

Might be related to vaadin/framework#11881

Expected outcome

I would expect dates after year 9999 to be treated like any other date (theoretically, up to Year.MAX_VALUE = 999_999_999).

Minimal reproducible example

This can be reproduced with the basic DatePicker demo from the Vaadin docs:
https://vaadin.com/docs/latest/example?path=component/datepicker/date-picker-basic.ts

Steps to reproduce

  1. Click the date picker
  2. Type "01/01/10000"
  3. Press enter

Result: The date picker is styled as invalid and the value is null.

Environment

Vaadin version(s): 23.2.8
OS: MacOS 12.6.1

Browsers

Chrome

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