Skip to content

bug(COMPONENT): Date Picker increments invalid date to next date e.g. 06/31/2024 is updated as 07/01/2024, Global Validation is not available #29663

Open
@monika-sharma-15

Description

@monika-sharma-15

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

Never implemented

Description

When a date that is invalid is entered in the start/change date such as 06/31/2024, the date picker automatically updates the date to the next valid date (in this example the system would automatically be set as 07/01/2024). Global implementation for the Date Picker is not available, Is there any way we can apply it globally to reflect it across application.

Reproduction

Steps to reproduce:

  1. Open angular Date Picker
  2. Enter date manually as 06/31/2024 and tab out, it will automatically be updated into 07/01/2024 which is the next valid date

Expectation : It should allow to apply validation globally to implement it on all the Date Picker module

Expected Behavior

There has to be a way to stop incrementing it and apply validation check for invalid date globally so that user will know that incorrect date is entered

Actual Behavior

it is automatically taking the next date for example 02/29/2023 is getting updated to 03/01/2023

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Activity

added
P4A relatively minor issue that is not relevant to core functions
and removed
needs triageThis issue needs to be triaged by the team
on Aug 30, 2024
monika-sharma-15

monika-sharma-15 commented on Sep 4, 2024

@monika-sharma-15
Author

@amysorto Is there any suggestions which you can give for implementation of this? Requirement is that we are looking for any Global .ts file or Listeners which can be used to achieve the solution globally.

monika-sharma-15

monika-sharma-15 commented on Sep 4, 2024

@monika-sharma-15
Author

@amysorto @jpzwarte @mprobst @dpurp When can we expect the resolution for this problem as this is blocking the work?

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

    P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @amysorto@monika-sharma-15

        Issue actions

          bug(COMPONENT): Date Picker increments invalid date to next date e.g. 06/31/2024 is updated as 07/01/2024, Global Validation is not available · Issue #29663 · angular/components