support icon indicating copy to clipboard operation
support copied to clipboard

Crash when drag scheduling unscheduled task with infiniteScroll

Open matsbryntse opened this issue 11 months ago • 0 comments

    t.iit('Should work with empty Gantt and infiniteScroll enabled', async t => {
        gantt = new Gantt({
            appendTo       : document.body,
            infiniteScroll : true
        });

        gantt.taskStore.add({});
        await t.dragBy({
            source : '.b-sch-timeaxis-cell',
            offset : [900, 10],
            delta  : [100, 0]
        });

        await t.waitForSelectorNotFound('.b-dragcreating');
        t.selectorExists('.b-gantt-task-wrap');
    });

Uncaught TypeError: Cannot read properties of null (reading 'getTime')
    at DateHelper.add (DateHelper.js:1701:31)
    at TaskDragCreate.moveDrag (EventResize.js:773:65)
    at TaskDragCreate.trackDrag (Draggable.js:537:14)
    at DragContext.track (DragContext.js:768:16)
    at ScrollManager.callback (DragContext.js:700:28)
    at ScrollManagerMonitor.onElementScroll (ScrollManager.js:553:32)
    at HTMLDivElement.handler (EventHelper.js:544:78)

matsbryntse avatar Mar 26 '24 00:03 matsbryntse