I am receiving an erratic behavior of the events when I load two eventSources and one of them is defined with rendering: background.
The generated JSONs are correct, since when defining the two eventSources with the normal rendering, everything works correctly.
The indicated behavior includes these symptoms:
Some Events that are not rendered (they always disappear from the calendar that is not background and not appear in DOM)
Background events that appear as normal events
In each press of previous / next the behavior can be different.
This is my code to load the events:
$('#workshifts_ocupations_calendar').fullCalendar({
defaultView: 'agendaWeek',
eventSources: [
{
id: "workshiftSource",
url: '<?= base_url(); ?>turno/ajax_load_workshifts_by_installation/'+installation,
editable:true,
success: function(){
console.log("turnos");
}
},
{
id: "backSource",
url: '<?= base_url(); ?>ocupacion/ajax_load_ocupations_by_installation/'+installation,
rendering: 'background',
editable:false,
success: function(){
console.log("fondos");
}
}
],
eventRender: function(event, element) {
// Si es background - Mostramos el título.
if(event.source.rendering == "background"){
element.html('<span class="backgroundEventsTitle">' + event.title + "</span>");
}
},
locale: 'es',
themeSystem: 'bootstrap3',
minTime: '07:00:00',
maxTime: '23:00:00',
slotDuration: '00:15:00',
slotLabelInterval: '00:30:00',
slotLabelFormat: 'H:mm',
selectable: true,
allDaySlot: false,
selectConstraint:{
start: '07:00',
end: '23:00',
},
eventConstraint:{
start: '07:00',
end: '23:00',
},
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
}
});
Here attach screenshots of the errors, produced pressing next and preview buttons (no reloading page).
Repeat: if I use normal rendering in both event sources, this issue does not occur.
FullCalendar v3.9.0

