I recently integrated fullcalendar into my website, but I've come across a strange bug. The event is set up correctly with all the necessary information, yet when the calendar loads, it appears in the wrong position and for the wrong duration. However, if I drag the event or refresh the calendar, everything corrects itself. Even the timestamp in the event title is accurate, it's just the display that's off. Oddly enough, this issue only arises when there is a single event in the calendar; multiple events display correctly.
_render: function(){
this._super('_render',arguments);
this.getCalendar().fullCalendar({
defaultView: 'agendaWeek',
editable:true,
height: 600,
});
this.getCalendar().fullCalendar( 'renderEvent', {
title: "purple",
start: "2018-02-07T11:30:00+01:00",
end: "2018-02-07T14:15:00+01:00",
color: "purple",
}, true);
// this.renderMeetings();
},
https://i.sstatic.net/qYdgY.png https://i.sstatic.net/vvi7B.png
Has anyone experienced this issue before and know how to resolve it? And have you noticed the misplacement of the grey areas indicating "non-working" hours?
EDIT: Further investigation revealed that the problem persists even when attempting to render a static event.
EDIT2: Despite simplifying the calendar settings, the issue remains unchanged...
EDIT3: Interestingly, testing the code on a blank page yielded the expected results, suggesting some interference from other code on my site... Any suggestions on how to troubleshoot this?