DHTMLX / gantt

GPL version of Javascript Gantt Chart

Home Page:https://dhtmlx.com/docs/products/dhtmlxGantt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

With multi-select on, There is a problem with the performance of undo

sunxd-lab opened this issue · comments

When I batch select and drag many times,then undo. It's not back to where it was last time.

gantt.plugins({ undo: true, multiselect:true, });

@sunxd-lab,
Most likely, the issue occurs because of a bug in Gantt with the multiselect extension. When the extension is added and you select a task, the events fire twice for that task if you do something with it.

But if you make the changes with the Gantt API, the Undo extension can revert the changes correctly.
For example, you can select several tasks in the following sample and use the Move Forward and Move Backward buttons. After you undo the changes, the dates will be restored correctly:
https://docs.dhtmlx.com/gantt/samples/?sample=%2702_extensions/09_multiselection.html%27&filter=%27multi%27

But if you move tasks manually, they will have different dates after you undo the changes.

The dev team will fix the bug in the future, but I cannot give you any ETA.