katafractari / ngx-combo-datepicker

Angular 4+ Combo Datepicker
https://katafractari.gitbooks.io/ngx-combo-datepicker/
MIT License
7 stars 8 forks source link

Returns null instead of date when selecting 29 Feb on leap year #7

Closed JoeDupuis closed 5 years ago

JoeDupuis commented 5 years ago

I select 29 Feb 2000 and it returns null instead of the date. If I select the 28 instead I get the date.

JoeDupuis commented 5 years ago

I also noticed that if I select the year 2000 and then the date 29, the day will get reset to my placeholder if i switch from January to February.

It won't get reset from if i do the same with 28 as the day instead.

So I guess the date check for leap year to put 29 in the list is valid, but there is another check somewhere that must be faulty.