I set a eventListener in month config, if dragging long time, the eventRenderer are not invoked when dragging, but the displayField is invoked, then the parameters of displayField are losses,
the code like below:
const calendarConfig = { ...baseCalendarConfig };
Reflect.set(
calendarConfig.modes.month,
'eventRenderer',
function ({ eventRecord, renderData }: any) {
console.log('eventRenderer');
const displayFieldsTemplate = generateDisplayFieldsTemplate({
viewConfig,
id: 'event_renderer_id',
});
return `${displayFieldsTemplate}`;
}
);
if i dragging the event in long time, eventRenderer method don't invoked again and The viewConfig is null in console,
the event content will display empty when dragging in long time like below: