Our state of the art Gantt chart


Post by Qwerty »

Hi there,

We've discovered an issue relating to deleting tasks reappearing when reapplying filters.

Steps to Reproduce

  1. Go to the advanced demo here https://www.bryntum.com/examples/gantt/advanced/
  2. Filter the start date column to show tasks starting after 1 January, 2019. It doesn't really matter what the filter is however, just that a filter exists.
  3. Delete the "Setup web server" task
  4. In the browser console, type
    gantt.taskStore.filter()

You'll notice that the "Setup web server" task reappears along with its children. These tasks are still technically deleted (gantt.taskStore.changes.removed.length === 6) but they appear in the UI. Attempting to interact with them in any way results in JS errors.

The same error can be seen by applying any sort of filter, not just reapplying the same filters.

gantt.taskStore.filter({ property: 'endDate', operator: '<', value: new Date() })

We've run into this because we have "saved view" functionality built on top of Bryntum, allowing users to store their configuration of column order, applied filters, etc. When switching between these saved views, the error above occurs.

Thanks again.


Post by mats »

Reproduced, thanks for crystal clear bug report: https://github.com/bryntum/support/issues/988


Post by Qwerty »

No worries mats, thanks again for the quick reply.


Post Reply