Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunxd-lab opened this issue Nov 7, 2023 · 1 comment
Open

Comments

@sunxd-lab
Copy link

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, });

@gearcoded
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants