Our powerful JS Calendar component


Post 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!


Post 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

All the best,
Alex


Post by jeff.wang »

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


Post 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

Best regards,
Márcio


Post Reply