-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
getMonthView() behaves incorrectly when excludedDays is set. #1201
Comments
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me |
After digging around in CalendarUtils, I think I found the source of the issue:
In instances where there are |
Hey there, thanks for taking the time to look into this, I had a quick look and this certainly seems like a bug, would you like to make a pull request with the fix you suggested? Thanks! 😄 |
Should be fixed now in |
If the option [weekStartsOn]="1", this previous week is displayed |
Describe the bug
I'm trying to modify the MonthView to only display 2 weeks at a time. I'm attempting this with:
The above code, if I understand it correctly, should always display current and following week given a viewDate.
However, I noticed that if I have [excludeDays] set and I select a day in the last week of a month, then only the current week is displayed and the following week isn't displayed.
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-kgs6vy
Screenshots


Expected:
Result:
Versions
@angular/core
: 8.2.14angular-calendar
: 0.28.5The text was updated successfully, but these errors were encountered: