PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

erkanarslan opened this issue · comments

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.

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.

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