Page 1 of 1

[REACT]the calendar component repeat invoke the removeInitter() in the last version

Posted: Fri Sep 09, 2022 9:17 am
by jeff.wang

Hi,

We update the calendar from 5.0.5 to 5.1.2, but the removeInitter() be invoked repeatedly when i hover in eventBar, eventTooltips don't show since the exception.

  get eventTooltipFeature() {
    return {
      showOn: 'hover',
      tooltip: {
        header: false,
        cls: 'hb-b-tooltip',
      },
      renderer: ({ eventRecord }: any) => {
        const itemData = eventRecord.data;
        if (!itemData.startDate && !itemData.endDate) {
          return null;
        }
        const { viewConfig, viewController, fieldsConfig } = this.props;
        return generateEventTooltipTemplate({
          itemData: eventRecord.data,
          viewController,
          viewConfig,
          fieldsConfig,
        });
      },
    };
  }

Image

when i removed the tooltip params, the problem will gone.

Thank you!


Re: [REACT]the calendar component repeat invoke the removeInitter() in the last version

Posted: Fri Sep 09, 2022 1:16 pm
by alex.l

Hi jeff.wang,

Can you reproduce this with our examples? Btw, I don't see any renderer property documented in that feature https://bryntum.com/docs/calendar/api/Calendar/feature/EventTooltip


Re: [REACT]the calendar component repeat invoke the removeInitter() in the last version

Posted: Tue Sep 13, 2022 5:20 am
by jeff.wang

if we set the tooltip params in EventTooltip config and then update config many times, and we will reproduce this.


Re: [REACT]the calendar component repeat invoke the removeInitter() in the last version

Posted: Tue Sep 13, 2022 10:03 pm
by marcio

Hello jeff.wang,

Could you please wrap your code (you can get one of our demos and add your configuration) and share it here?? That way will be easier for us to help.

Also, note what Alex mentioned that we don't currently have a renderer property in EventTooltip