Type error when slotDuration is in whole days
See original GitHub issue###Reduced Test Case
https://codepen.io/tuerker/pen/eYzLZar
###Bug Description
When there is only one slot per day, the calendar crashes and becomes unusable.
I had a quick view on the code. The problem lies in the class TimeColsSlatsCoords.ts.
The method computeTimeTop(duration: Duration) delivers an NPE
let slotDurationMs = slatMetas[1].date.valueOf() - slatMetas[0].date.valueOf() // we assume dates are uniform
Obviously, this happens when there is only a single slot per day.
A revision is required here since this very common use case cannot be excluded!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Issue with slotLabelInterval and odd time settings
I believe this is a bug in the calculations because it you do the math on the times, each days time is a...
Read more >slotDuration - Docs
slotDuration. The frequency for displaying time slots. Duration, default: '00:30:00' (30 minutes). 10% of profits donated to effective charities.
Read more >Fullcalendar duration / slotDuration
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >[FullCalendar Reactive] Javascript error thrown when trying to ...
Forge component by André Cabral. Application Type. Reactive. Service Studio Version. 11.53.16 (Build 61265). I am using the Demo of Full Calendar to...
Read more >fullcalendar 5.5.1 on Node.js NPM
view styles lost after changing to view with allDaySlot:false, view-specific dayHeaders (#6069); type error when slotDuration is in whole days (#5952) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
forget it. i works. it was my fault on being not on the latest version. many thanks again to adam for fixing it.
Thank you much appreciated!