vlio20 / angular-datepicker

Highly configurable date picker built for Angular applications
https://wondrous-crostata-172891.netlify.app/
MIT License
498 stars 142 forks source link

Min and Max date isn't respected by input #639

Open LePacko opened 1 year ago

LePacko commented 1 year ago

If you add a maximum or minimum date to your configuration, clicking on the calendar does not work as expected. However, if you use the input and set an invalid date, the date picker accepts it and places it in the calendar as accepted, even though it falls outside the expected range.

Version 16.0.0 Angular 16.2.8 all browser

vlio20 commented 1 year ago

Hi @LePacko, can you please create a stacjblitz?

LePacko commented 12 months ago

https://stackblitz.com/edit/ng2-date-picker-weqox6?file=app%2Fapp.component.html

If you go on this url you will see max date set as 17/11/2023 but you can manually input it at 19/11/2023 and in the calendar the date gonne be selected like it's valid

vlio20 commented 11 months ago

You are using angular 4. Pleae update to the latest version to verify that the issue still occures

LePacko commented 11 months ago

the project is updated and the bug still here https://stackblitz.com/edit/ng2-date-picker-ykhvbv?file=package.json

vlio20 commented 11 months ago

the latest version is 17, but I assume that the issue is also present in 17. Checking.

vlio20 commented 11 months ago

Seems like the link is not loading image

LePacko commented 10 months ago

You can test it on your own demo link https://wondrous-crostata-172891.netlify.app/daytimePicker

Just set a max date, when you see in the calendar you can't pick it try to input it manually and you will see the date gonna be selected.

image