jsGanttImproved / jsgantt-improved

Javascript Gantt: fully featured gantt chart component built entirely with JS and CSS. No images or external libs required.
https://jsganttimproved.github.io/jsgantt-improved
Other
483 stars 249 forks source link

this.vDiv.hasChildNodes in this.Draw is not a function #344

Open RudiSchloesser opened 3 years ago

RudiSchloesser commented 3 years ago

Version 2.8.2 raise the exception "hasChildNodes() is not a function" at line 745: while (this.vDiv.hasChildNodes()) this.vDiv.removeChild(this.vDiv.firstChild);

The error is fixed by replacing this with

    while (this.vDiv[0].hasChildNodes())
        this.vDiv[0].removeChild(this.vDiv[0].firstChild);