Re-order task error in firefox

Hi,

I encountered an error in firefox while reordering tasks.
Error in this part of code (codebase).
As i reorder task, i get this error : “TypeError: t is null”
But this is working in chrome.
Please advise.

Code Snippet :
gantt.locate = function(t) {
var e = gantt._get_target_node(t);
if (“gantt_task_cell” == e.className) return null;
for (var n = arguments[1] || this.config.task_attribute; e;) {
if (e.getAttribute) {
var i = e.getAttribute(n);
if (i) return i
}
e = e.parentNode
}
return null
}, gantt._get_target_node = function(t) {
var e;
return t.tagName ? e = t : (t = t || window.event, e = t.target || t.srcElement), e
},

Hi,
I’ve done a quick check on this sample and haven’t reproduce the issue. Can you give an instructions or required settings to reproduce the error?
docs.dhtmlx.com/gantt/samples/07 … ering.html

Hi,

Is there an blockable event before saving the new order?
I will revert positions when conditions were not met.

Thanks,

Hi,

Any feedback on this?

Hi,
currently there is no blockable event. We’ll consider adding it in a future versions

Hi,

I made this work by using the movetask gantt function.
I saved the previous level and parent. If conditions were not met after drag end, I will revert the task to its original position.