jsGanttImproved / ng-gantt

Gantt for Angular 8 based on jsgantt-improved
MIT License
61 stars 28 forks source link

editor property of GanttEditorComponent doesn't have 'options' field #21

Open keweixinfr opened 4 years ago

keweixinfr commented 4 years ago

Inside ngOnInit function, we attribute this.editor.options to optionsBefore but the value this.editor.options is actually undefined if we use console to check the value. This causes some problems when we try updating our data since the option before is undefined and the jsgantt will, therefore, use some default options. Here is a screenshot when I access the editor.options from the parent component. As we can see, all these options are already parts of the editornot inside editor.options undefined

mariohmol commented 4 years ago

Any suggestions on how to fix this?

Could u provide an example so we can investigate?