onTaskClick 单击之后触发两次 能不能从底层解决

onTaskClick 单击之后触发两次 能不能从底层解决 或者说现在怎么解决

Hello Momo,
When you create new topics and post messages, please only use the English language so that everyone can understand it.

Usually, the onTaskClick event fires only once. If your Gantt version is between 6.3.0 and 8.0.6 versions and you enabled the Multiselect extension, you encountered a bug that was fixed in the 8.0.7 version:
https://docs.dhtmlx.com/gantt/whatsnew.html#:~:text=Fix%20the%20duplicate%20event%20firing%20while%20interacting%20with%20a%20selected%20task%20when%20the%20Multiselect%20extension%20is%20enabled

But that is related only to the selected task. It shouldn’t be reproduced in other cases.

If your Gantt version is different, it is hard to suggest what might be wrong as I don’t see your code.
In that case, please add your configuration to the following snippet and make sure that the issue is reproduced there:

Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.