PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.
Apache License 2.0
105 stars 65 forks source link

If items is set after dropdown element is initialized, dropdown list is empty in iOS #185

Closed erkanarslan closed 5 years ago

erkanarslan commented 5 years ago

Items need to be set before view is initialized. Only happens in iOS. No problem with Android.

Right now, you can solve this problem bu putting an *ngIf="items" to the element.

PeterStaev commented 5 years ago

Hey @erkanarslan , I've just tested this with the demo-ng app inside this repo by making some changes so that the items property is not initialized in ngOnInit but with the press of the button and everything works as expected. Make sure you are using the plugin as specified in the readme and demo apps and if you still have problems provide a link to a playground that reproduces the issue.

PeterStaev commented 5 years ago

No further response so closing this one for now. In case you still have problems, please provide more details.