bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Gantt crashes when dragging multiple selected tasks #9968

Closed taauntik closed 2 weeks ago

taauntik commented 3 weeks ago

Reproducible in Microsoft Edge with http://lh/master/gantt/examples/advanced/ demo

Steps to reproduce:

  1. Select task from 3 to 7 and 9-11
  2. Now drag it to the end of the timeline view and drop it
  3. Now try to drag the task number 4 backward
  4. You'll see an error in the console
    DragBase.js:1047  Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'classList')
    at DragBase.js:1047:38
    at Array.forEach (<anonymous>)
    at TaskDrag.getDragData (DragBase.js:1047:21)
    at TaskDrag.onDragStart (DragBase.js:447:43)
    at DragHelper.trigger (Events.js:1541:44)
    at DragHelper.internalMove (DragHelper.js:811:35)
    at DragHelper.onMouseMove (DragHelper.js:887:14)
    at HTMLDocument.handler (EventHelper.js:571:78)

Video:

https://github.com/user-attachments/assets/e37aa544-32af-45b4-88af-77ec696c393a