Bug in the Parent control?

There seems to be a bug with this control. It only works while trying to edit the existing ones.

e.g. docs.dhtmlx.com/gantt/samples/05 … ector.html , if I try to add a new task by clicking the ‘+’ button on Task 2, and in the lightbox, I select parent as Task 4, the task is still created under Task 2. Changing the parent doesn’t seem to work at all for this case, unless I change the parent to ‘No Parent’, and then select the parent again.

Can you please take a look?

we’ve reproduced the bug, thanks.
I’ll post a fixed version of parent selector here soon

Please try the attached version, the bug should be fixed now
dhtmlxGantt_v3.3.3.zip (471 KB)