Hello!
Here's how to reproduce:
- Load the demo: https://bryntum.com/examples/gantt/highlight-time-spans/
- In the console, apply a filter:
gantt.taskStore.filter({filters : task => task.name == "xx", replace : true});
- Then create a highlight for a task:
gantt.highlightTimeSpan({ taskRecord: gantt.project.taskStore.getById(1), name : 'hello!', startDate : new Date(2019, 01, 01), endDate : new Date(2019, 01, 06) })
- Crash!
Expected:
- I'd expect highlightTimeSpan() to do nothing
- If it did nothing and I then I had the task shown by changing the filter, I'd expect the highlighted timespan to be visible again.
Also, if you highlight a task timespan and THEN apply a filter so that task moves around, the timespan does not follow its task.