Open ckvoon opened 7 years ago
@ckvoon thanks for reporting this. I have tried to figure it out, but failed to resolve this issue.
@ng2-ui/datetime-picker anyone?
@allenhwkim try to updae datetime-picker.directive.js line 203and 204,change this.parent["name"] for this.parent["path"]
@allenhwkim I have repair this ,rewrite datetime-picker.change this.parent["name"] for this.parent["path"] in directive.ts ngOnInit function
when set default value have some bug , This can not use format . You can change
I've run into the same problem. Unfortunately wqdjl's solution doesn't work for me.
I got wqdjl's solution to work finally. The thing is the changes have to be made in the directive.js file AND in the directive.ts file.
Use in FormArray and this error
... path.split is not a function ...
appears.DEMO!!
It works when there is only one item in FormArray though...but I need to use FormArray so that user can manually add more datepicker fields, so..
Btw, the latest version 0.14.7 seems to have some issue when use with form builder. First time selecting date from datepicker will causes an error
Cannot read property 'type' of undefined
(ver 0.14.5 works fine though)