Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LePacko opened this issue Nov 10, 2023 · 7 comments
Open

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

LePacko opened this issue Nov 10, 2023 · 7 comments

Comments

@LePacko
Copy link

LePacko commented Nov 10, 2023

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
Copy link
Owner

vlio20 commented Nov 11, 2023

Hi @LePacko, can you please create a stacjblitz?

@LePacko
Copy link
Author

LePacko commented Nov 17, 2023

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
Copy link
Owner

vlio20 commented Dec 11, 2023

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

@LePacko
Copy link
Author

LePacko commented Dec 13, 2023

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

@vlio20
Copy link
Owner

vlio20 commented Dec 13, 2023

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

@vlio20
Copy link
Owner

vlio20 commented Dec 13, 2023

Seems like the link is not loading
image

@LePacko
Copy link
Author

LePacko commented Jan 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants