Our state of the art Gantt chart


Post by abvardy »

While passing the following feature for the <BryntumGantt /> component:

taskResizeFeature: {
  tip: {
    html: 'tooltip',
  },
},

during a resize, the following is the error observed:

Uncaught TypeError: Cannot read property '0' of undefined
    at TaskResize.getTooltipTarget (gantt.module.js:87)

Post by abvardy »

I have also tried:

taskResizeFeature: {
  tip: new Tooltip({
    html: 'tooltip',
  }),
}

which results in:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    |     property 'lastDomConfig' -> object with constructor 'Object'
    --- property '_element' closes the circle

Post by pmiklashevich »

Reproduced! Thank you for the report! Please subscribe to the ticket to get notified when it's fixed: https://github.com/bryntum/support/issues/2082

Pavlo Miklashevych
Sr. Frontend Developer


Post by abvardy »

Thank you!


Post by abhilashlr »

This version still didn't work. I have been trying a similar code as mentioned and I see the same error on 4.0.8 version of the gantt plugin.


Post by pmiklashevich »

Please try this code in Gantt/examples/basic/app.js

import Tooltip from '../../lib/Core/widget/Tooltip.js';
import '../../lib/Gantt/feature/TaskResize.js';
......

const gantt = new Gantt({
    features : {
        taskResize : {
            tip : new Tooltip({
                html : 'test'
            })
        }
    },
    .....

I've just checked against 4.0.8 version. No errors found.

If you see an error, please start a new thread with the full info of how to reproduce the error, full error message you see, screenshots, etc. How to ask for help is described here: viewtopic.php?f=35&t=772

Cheers!

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply