Page 1 of 1

[REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Thu Oct 06, 2022 8:42 am
by jit@flowit.dk

Hi,

Please see attached sample project (based on the React Basic example).

How to trigger bug:
Move a task somewhere else (in the left side grid panel) using drag and drop. Now do it again - move the same (!!) task somewhere else. The second time we move a task the code fails because tasks being dragged and dropped are removed from args.project.tasks in the OnDataChange handler.

Why are tasks no longer accessible through args.project.tasks after having been dragged and dropped? If this is not a bug, what are my alternatives?

-- Thanks


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Thu Oct 06, 2022 9:46 am
by jit@flowit.dk

Full runnable example attached so you don't have to copy 'src' to the basic example.


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Thu Oct 06, 2022 10:03 am
by tasnim

I've tried copying from the src2.zip. And not able to reproduce it. Seems like working fine I don't see any code fails.
Could you please provide a video on how to reproduce it and what fails you're seeing?


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Thu Oct 06, 2022 10:34 am
by jit@flowit.dk

Sure - see attached video.


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Thu Oct 06, 2022 12:31 pm
by tasnim

Hi,
Thanks for the video. I've reproduced it. I've created a ticket to investigate. Here it is https://github.com/bryntum/support/issues/5371

Good Luck :),
Tasnim


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Thu Oct 06, 2022 12:33 pm
by jit@flowit.dk

Thanks Tasnim - appreciate it :-)


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Tue Oct 11, 2022 1:08 pm
by jit@flowit.dk

Hello again.

What can we expect from here on? Will it be fixed within a week? A month? 6 months? Never?
Do you have any suggestions for work arounds?


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Tue Oct 11, 2022 2:21 pm
by alex.l

Hi jit@flowit.dk,

We sent this ticket to our project management team. Milestone has not been set yet, so looks like this ticket has not been proceed at the moment. I will ping them again about that to make sure nothing missed.
When ticket will get a milestone, we will see in which release it's planned to be fixed. I can't provide you any dates now, but of course it won't take 6 months or never.

I can subscribe on ticket updates and you'll be notified when it gets a milestone or status changed.

About a workarond, try to use https://bryntum.com/docs/gantt/api/Gantt/model/ProjectModel#event-dataReady event instead. This event triggers when engine finished all calculation, so all ids should be there.


Re: [REACT] OnDataChange: Task is removed from args.project.tasks on drag and drop

Posted: Wed Oct 12, 2022 11:52 am
by jit@flowit.dk

Thanks, Alex. I would appreciate an update once a milestone is set and an expected release date is known :-)