question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[excludeDays] doesn't work correctly in the week view component

See original GitHub issue

Describe the bug

When using some combinations of days to be excluded, some days that shouldn’t be excluded are excluded anyway, for example, setting [excludeDays]=“[4, 6]”, friday (day 5) is also excluded in the week view (even though it works fine in the month view).

Seems like the combinations of days “0, 2” and “4, 6” are the problematic ones for me, but I’m not sure if there’s others combinations with issues as well.

Including a screenshot using [excludeDays]=“[4, 6]”, in both month and week views (friday is missing in the week view). The screenshot was taken in a new project:

Minimal reproduction of the problem with instructions

Screenshots

angular calendar bug report

Versions

  • @angular/core: 7.2.0
  • angular-calendar: 0.27.7
  • Browser name and version: Firefox 66.0.4, Google Chrome 74.0.3729.131, Microsoft Edge 44.17763.1.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mattlewis92commented, May 27, 2019

@evilstiefel it’s probably related to this bug, I’ll make sure to include a test case for that when I get round to fixing it. As a workaround you can set [daysInWeek]="1" to get the same effect.

0reactions
mattlewis92commented, Aug 18, 2019

Finally managed to fix this one, please give 0.27.17 a go 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

mwl-calendar-week-view - angular-calendar documentation
newStart, true) " (dragEnter)="dateDragEnter($event.date)" > </mwl-calendar-week-view-header> <div class="cal-all-day-events" #allDayEventsContainer ...
Read more >
Calendar don't show events in first load, only after trigger ...
Only when I trigger any event like click in button to change the view from month to week for example. I'm using Angular...
Read more >
Calendar Views in Lightning Experience
View, create, and edit your events in a day, week, or month view. You can also see any calendars shared by colleagues that...
Read more >
WORKDAY function
Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, ... Working days exclude weekends and any dates identified as...
Read more >
Employer Mandate under the Affordable Care Act (ACA)
Employees who work 30 or more hours per week are considered full-time. ... Employer offers coverage, but coverage is not affordable and/or doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found