First day in View - Event spans from previous day ignoring nextDayThreshold
See original GitHub issueI’m using fullcalendar-3.7.0. I’m working on a calendar to display on-call shifts. They are consistent 24 hour shifts from 8am to 8am the next day.
I only want the shifts to display on their start date so I’ve turned off spanning by using:
nextDayThreshold: "09:00:00"
Expected Results: All events respect nextDayThreshold and are only displayed on their Start Date
Actual Result: Most events respect nextDayThreshold, except the first day in the basic monthly/week view also displays the spanned events from the previous day. These events don’t display the time and are left-aligned in the cell.
Here is a JSbin example - The issue is visible in the Month/Week view on October 1st: http://jsbin.com/sibehix/14/edit?html,js,output
This is causing some confusion among users. Is there a way to have the first day of the view respect the nextDayThreshold like the other days?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thanks for the report, I agree that since Shift 1 starts in Sept and ends at 8 am on Oct 1, it should not show in October since nextDayThreshold is later in the day.
This has been very difficult to fix w/o a refactor, so here’s a workaround for now:
https://codepen.io/arshaw/pen/LQPXQj?editors=0010