Our powerful JS Calendar component


Post by jeff.wang »

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:

Image


Post by tasnim »

Sorry, not enough information to investigate. Could you please provide a test case and also steps to reproduce it? so that we can debug it and give you the solution right away!


Post Reply