When we create a Gantt object in our custom base class say - Ganttchart, we have the below configs for print/pdf export functionality -
print: aPnGanttchartConfig.print,
pdfExport: {
exportDialog: {
bbar: {
items: {
exportButton: { text: 'Print' },
},
},
},
},
private print() {
this._gantt.scrollTo(0);
this._gantt.features.print.showPrintDialog();
}
We need the functionality of keeping the state of expanded when a child WBS item is extended or moved in of our child class say ProjectGanttchart of custom base class PnGanttchart, hence we upgraded the Bryntum version from 5.6.10 to 6.1.4 to use the keepExpandedOnLoad.
The issue we face post this upgrade is that, upon constantly extending/moving the items, and using the print functionality again and again, sometimes leads to failure of the print and we get "Export failed" pop up and we can't go back from this state.
This issue was not there in the 5.6.10 version but we would occasional encounter this error in the console but would not lead to a permanent crash.
Uncaught RangeError: Maximum call stack size exceeded
at ex.focus (comp.project.ganttchart.umd.min.js?ver=115.0.0.12:2:460841)
at Object.focusin (comp.project.ganttchart.umd.min.js?ver=115.0.0.12:2:187873)
at focusout (comp.project.ganttchart.umd.min.js?ver=115.0.0.12:2:188741)
at HTMLBodyElement.p (comp.project.ganttchart.umd.min.js?ver=115.0.0.12:2:150544)
at HTMLAnchorElement.handler (jquery-3.7.1.js?ver=115.0.0.12:2:37391)
at HTMLAnchorElement.dispatch (jquery-3.7.1.js?ver=115.0.0.12:2:40035)
at v.handle (jquery-3.7.1.js?ver=115.0.0.12:2:38006)
at Object.trigger (jquery-3.7.1.js?ver=115.0.0.12:2:70124)
at HTMLAnchorElement.<anonymous> (jquery-3.7.1.js?ver=115.0.0.12:2:70726)
at ce.each (jquery-3.7.1.js?ver=115.0.0.12:2:3129)
We need your help in figuring out how we can solve the issue post upgrade.