I’m trying to change the default behavior of hovering to clicking to show the tooltip. So I called the setContent function of tooltip plugin to display it, but it appeared and then disappeared when clicking the task the first time the page loaded. After that first click, everything would work as expected.
If you want to show the tooltip after clicking, you need to implement a custom solution.
If you click on a task row in the grid or timeline, usually, Gantt selects the task after that. And it means that the task row will be repainted. Because of that, the tooltip may be hidden. To fix that, you need to show the tooltip after a timeout.
Here is an example of how it can be implemented: https://snippet.dhtmlx.com/awm2pjsm
But I have a question for QuickInfo that if I can control when it can be displayed?
Now it seems to be the default behavior while clicking a task. Seems I can’t control it inside onTaskClick. Is it possible for me to implement this by other means?