Drag_timeline extension not working with Gantt.getGanttInstance()


#1

I am currently using dhtmlxgantt 7.0 pro with Vue.
On creation of my site I use Gantt.getGanttInstance() and initialize it.
Everything worked fine, also using marker und multiselect extensions.
But if I add drag_timeline to the other two extensions like:

this.gantt.plugins({
  marker: true,
  multiselect: true,
  drag_timeline: true
})

I get the following error:

TypeError: t is undefined

If I use the global “gantt” and not Gantt.getGanttInstance() everything works fine.


#2

Hello,
That bug was fixed in the 7.0.2 version:
https://docs.dhtmlx.com/gantt/whatsnew.html#702
You can see how it works in the following snippet:
https://snippet.dhtmlx.com/5/2c10f06b9


#3

Okay, works now, thanks!