Eonasdan / tempus-dominus

A powerful Date/time picker widget.
https://getdatepicker.com
MIT License
7.16k stars 4.41k forks source link

Incorrect behavior when entering an invalid date #2910

Open saher88 opened 1 month ago

saher88 commented 1 month ago

Prerequisites

Describe the issue

When you try to enter an invalid date from the keyboard in MM/DD/YYYY format, for example 04/31/2024, the value is converted to 05/01/2024 ، my code expects the date to be the same, or at least returns an invalid date message, but the value is converted to a date other than the entered date.

StackBlitz fork

..

What operating system(s) are you seeing the problem on?

Windows, macOS, Linux

What browser(s) are you seeing the problem on?

No response

What version of are you using? You can find this information from the sample StackBlitz.

v6.9.4

What your browser's locale? You can find this information from the sample StackBlitz.

all versions