PeterStaev / NativeScript-Drop-Down

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

selected row is not a selected index #178

Closed ghost closed 6 years ago

ghost commented 6 years ago

while i am on the page and pick one item from picker and close it and then open picker again it have focus "selectedRow" on picked item, not on the first item. but when i go to another page and go back and open picker again, the selected row is first item while i did have set selected index on selected item for example the second item, trigger is showing the selected item with my selectedIndex

PeterStaev commented 6 years ago

Hey @giorgi-abashidze , I cannot simulate this behavior. Here is playground with the testbed I used: https://play.nativescript.org/?template=play-tsc&id=20jgHf

Can you please provide a playground (or sample app) where this problem is reproducible?

ghost commented 6 years ago

are you testing it on android or ios? I have this problem on ios

PeterStaev commented 6 years ago

iOS (don't have any hardware android devices)

ghost commented 6 years ago

i will test your playground tomorrow, now I don't have ios device

simonox commented 6 years ago

Same with me. But in the playground this issue is not reproducible (at the moment). I am trying to provide a test case where this issue is reproducible.

simonox commented 6 years ago

I could reproduce it using Angular. Here's my playground: https://play.nativescript.org/?template=play-ng&id=e5KrVH&v=2

On page init I expect the selected index to be 3, but the initial keyboard on iOS shows the first (index = 0) item.