-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
disabledDates causes lateness and next /previous navigation issues #2658
Comments
…the next/previous month selection #2658
…the next/previous month selection #2658
…the next/previous month selection #2658
Hi please check this branch https://github.com/Eonasdan/tempus-dominus/tree/2658-disableddates-causes-lateness-and-next-previous-navigation-issues. Also.. I hope you aren't actually building a list of every single weekend cause there's an option to disable days of the week. |
Here's a stackblitz of this working |
Hi. I checked it in my exact case and I can confirm the issues are fixed. Thank you. |
Awesome. I'll get this merged soon |
This was released with 6.2.6 |
When disabledDates is loaded with an long array of dates, it causes lateness. For 800 entries it takes around 20 seconds to show (I need 5 year worth of data). The issue is in _isInDisabledDates -> mapping on return statement because for every date shown it reprocesses all disabled dates.
It would be a very quick fix to solve this, just remember the formatted disabled dates array on the first occurrence.
disabledDatesArray.txt
Another issue, also tied with disabled dates is that I cannot navigate next/previous month for all months.
I attached a file with dates that can be passed for testing.
The text was updated successfully, but these errors were encountered: