angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.32k stars 6.73k forks source link

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 opened 2 weeks ago

monika-sharma-15 commented 2 weeks ago

Is this a regression?

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

monika-sharma-15 commented 1 week ago

@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 commented 1 week ago

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