digipolisantwerp / antwerp-ui_angular

Antwerp UI is a component interface library for building user interfaces and responsive web apps.
https://digipolisantwerp.github.io/antwerp-ui_angular
MIT License
13 stars 19 forks source link

Datepicker with blank year or month gives a date in 2001 #179

Closed sander-c closed 4 years ago

sander-c commented 4 years ago

Describe the bug

When filling next dates in the datepicker "08//__" gives "2001-07-31T22:00:00.000Z", "08/05/____" gives ""2001-05-07T22:00:00.000Z"" while you should get the error 'invalid date'

To Reproduce

Steps to reproduce the behavior:

You can test it in the docs: https://digipolisantwerp.github.io/acpaas-ui_angular/modules/forms/datepicker

Expected behavior

Should give a error message if the date isn't filled in completely

TriangleJuice commented 4 years ago

Fixed by #183