Hello,
After upgrading Bryntum Gantt from version 6.1.9 to 6.2.0, my code for accessing the Gantt component instance in Angular stopped working. Previously, I used the following approach:
@ViewChild('gantt', { static : false }) ganttComponent!: BryntumGanttComponent;
async ngAfterViewInit() {
this.gantt = this.ganttComponent.instance;
console.log('Gantt Instance:', this.gantt);
...
}
In version 6.1.9, this.ganttComponent.instance correctly returned the component instance, but after upgrading, this property no longer seems to be found, as it now returns undefined.
I have tried modifying your angular/undoredo example to use the same version of angular as my project but in yours it does return the value of instance.
Do you have any idea what could be causing this error?
When updating, two other errors also appeared:
ERROR TypeError: this.L(...) is not a function
at TimeAxisColumn2.updateHeaderAriaLabel (gantt.module.js:155300:40)
at TimeAxisColumn2.onTimelinePaint (gantt.module.js:155361:10)
ERROR TypeError: Cannot read properties of undefined (reading 'size')
at Gantt.onElementMouseOver (gantt.module.js:126283:32)
at Gantt.onElementMouseOver (gantt.module.js:226213:11)