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.

[v4-alpha.2] Event recurrence start/end

See original GitHub issue

Hi,

I have recently upgraded to the 4.0-alpha version to use the recurrence feature on the Event model. When we specify a start/end attribute on the event object, the event does not appear on the calendar.

For example:

// Working 
let event = { daysOfWeek: [1,2,3], startTime: '08:00', endTime: '10:00' } 

// Not working 
let event = { daysOfWeek: [1,2,3], startTime: '08:00', endTime: '10:00', start: new Date(), end: new Date() } 

// Rendering event
cal.addEvent(event);

Would be great to be able to keep start/end properties since we need to access those attributes when an Event is updated on the calendar.

Is it a bug ? For the moment I will store start/end in the extendedProps

Best,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adjioevcommented, Nov 4, 2018

@anoopar,

if you need a quick temporary fix you can edit fullcaleadar.js source, look for expandRanges method and add if (framingRange === null) { return []; } check:

function expandRanges(daysOfWeek, startTime, recurRange, framingRange, dateEnv) {
    framingRange = date_range_1.intersectRanges(framingRange, recurRange);
   if (framingRange === null) { return []; }
    var dowHash = daysOfWeek ? object_1.arrayToHash(daysOfWeek) : null;
    var dayMarker = marker_1.startOfDay(framingRange.start);
    var endMarker = framingRange.end;
    ....

Cheers Alex

0reactions
arshawcommented, Dec 25, 2018

seems like all user-errors have been addressed and that the real bug ticket is this #4369, so closing this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create event Recurrence every "2 weeks" does not w...
I write this because the "Update Event V4" is a horrible design. infact it suggest the passing in of values is horrible across...
Read more >
v4 MIDI editor bugs [Archive] - Cockos Incorporated Forums
2. Note off events are missing from live recorded notes when step recording ... I repeat here to make sure that this MIDI...
Read more >
Benchmarking challenging small variants with linked and long ...
benchmarking results when v.3.3.2 missed variants in the repeat but outside the benchmark regions, so partially included repeats.
Read more >
Preview - JS Bin - Collaborative JavaScript Debugging
mini banner Home Browse Archives News Archives Event Archives Community News ... function findMax(l,start,end){ if (end-start > 1){ var mid = flr((start+e.
Read more >
Highest scored 'fullcalendar-4' questions - Page 4 - Stack Overflow
2 answers ... I am working on adding recurring events to the calendar now, but when I do, ... I'm using fullcalendar (the...
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