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

Grid crashes when deleting records with group checkbox selected #9959

Closed taauntik closed 2 weeks ago

taauntik commented 3 weeks ago

Reproducible in Microsoft Edge with http://lh/master/grid/examples/selection/ demo

Steps to reproduce:

  1. Select "show check all" and "checkbox in group header"
  2. Group by "city"
  3. select a group header and right click on the selected record then "delete"
  4. You'll see this error in the console
    GridSelection.js:1926  Uncaught TypeError: Cannot read properties of undefined (reading 'groupChildren')
    at GridSelection.js:1926:37
    at Array.forEach (<anonymous>)
    at Grid.prepareSelection (GridSelection.js:1925:30)
    at Grid.onStoreRemove (GridSelection.js:675:40)
    at Grid.onStoreRemove (GridBase.js:2179:30)
    at Store.trigger (Events.js:1541:44)
    at Store.onDataChange (Store.js:1286:24)
    at Collection.trigger (Events.js:1541:44)
    at Collection.splice (Collection.js:819:16)
    at Collection.remove (Collection.js:530:18)

Video:

https://github.com/user-attachments/assets/1e3b9344-68da-456a-bd13-5f06684c7ba7