Expand/collapse issue on task click event

Hello,

Produced in dhtmlxgantt 3.0 :
When use onTaskClick event it’s bind Expand/collapse(plus/minus) icon click event.

Hi,
onTaskClick fires when you click on task row in a grid area (including ‘expand/collapse’ and ‘add task’ buttons) and on a bar in a timeline

Hello Aliaksandr,

video link : youtu.be/sTwtye-qGyY

I use code in js(Both version 2.1.1 & 3.0):
gantt.attachEvent(“onTaskClick”, function(id){
return;
});
It work on 2.1.1 correctly but create problem in 3.0
In 3.0 it not allowed to expand/collapse if use onTaskClick.

Thnx.

Make sure you return ‘true’ from the handler, the event is blockable

I just use :
return;

Thanx find solution :smiley:

But it make problem in tooltip if expand/collapse.
Tooltip width is automatically increase. :frowning:

Yes, this is a known bug and it has been fixed in latest dev version. If you have a support subscription - please open a ticket and i’ll send you a fixed version