Bug report: multiselect plugin leads to "double updates"

Hello!

I’d like to report an issue with the multiselect plugin. Here’s a minimal repro case:

  1. Open Javascript console (e.g. in Chrome via Devtools)
  2. Open snippet http://snippet.dhtmlx.com/5/635f2b53e
  3. Click once on the demo task so that it gets selected ( → row gets highlighted in yellow)
  4. Now move the task in the Gantt chart to another date

Observation:
The updation function of the data processor gets called twice (see console output).

Expected result:
The update function only gets called once.

Note: This does not happen if the row is not selected before you move the task or if the multiselect plugin is not enabled.

Hello,
Thanks for your detailed description of the issue.
This is a bug in Gantt, and we are aware of it. The dev team will fix it in the future, but I cannot give you any ETA.
Currently, there is no workaround to prevent the events to fire several times after the task is modified with multiselect extension.

Hello,
The dev team fixed the bug with the multiselect extension, so now the events don’t fire twice for the selected task:
https://docs.dhtmlx.com/gantt/whatsnew.html#x8318x90x8319x:~:text=Fix%20the%20duplicate%20event%20firing%20while%20interacting%20with%20a%20selected%20task%20when%20the%20Multiselect%20extension%20is%20enabled

You can see that the bug is no longer reproduced in the following samples:
http://snippet.dhtmlx.com/5/4c9b1a86e
https://snippet.dhtmlx.com/5/eb6369144
https://snippet.dhtmlx.com/5/b7925f34e