Gantt addTask with indexPosition

Hello,

I am using the version 4.0 of the gantt.

When I add a task with the addtask method specifying a specific index. The new task is well inserted at the right position. But if I edit the new task with the lightbox, the position is lost and the task go to end of the task list of the branch.

How can I keep the position of the task ?

Thanks in advance for your help.

Renaud

Hello,

Could you help us to reproduce the problem? For example, give sample of your code.

Task has the same position after editing with the lightbox in the snippet:
docs.dhtmlx.com/gantt/snippet/b60446c5

I found the bug in my code.
I initialized the $new property of the task and I should let it manage entirely by the gantt component.

Thanks for your help.