Bug: Grid_Folder with svg and Tooltip

If I add support for Tooltip and I have grid_folder implemted, and change grid_folder to return this

return “

”;

I will get a error in dhtmlxgantt.js line 8889
if ((trg.className || “”).indexOf(“gantt_task_cell”) >= 0) return null;

My own temporary fix is this:
var className = typeof trg === “object” ? trg.className.baseVal : trg.className;
if ((className || “”).indexOf(“gantt_task_cell”) >= 0) return null;

Or is it because I do something wrong when using svg files?
The reason I don’t use a css class, is because the svg is dynamic and I need to change the fill for it

Hello,
it is a known problem, although we’ve discovered it only recently.
Svg elements inside a gantt may trigger an error because of format of className property of SVG Element. There are several places where component inspects a class name of event target in order to trigger the reaction, and all that checks expects that className is a string (not an object)

I’ll post fixed build here (gpl version) soon. If you need a licensed build - please open a ticket in support system or PM me your license number

Hi,
please try the attached build (gpl version).
It should cover several other parts of the gantt which may work incorrectly if contain an svg element
dhtmlxGantt_v3.2.1.zip (475 KB)