axel-zarate / js-custom-select

Custom auto-complete select box for AngularJS and Bootstrap
MIT License
68 stars 59 forks source link

Depended control value not updated? #38

Closed bhattjeet closed 8 years ago

bhattjeet commented 8 years ago

Hello All,

I have three depended custom-select control. 1) Shipper 2) Country 3) City

When i change shipper name then i fetch country and city list and assign selected id to Country and City control value but that value is not affected. Only country control was updated value based on shipper details. But city control value updated but its not selected. Please see below image for more information. shippervalid

But i need like this. shippervalid1

Below i create plnkr: http://plnkr.co/edit/FK7r7OANhwDMzt2GCH5N?p=preview

Amenel commented 8 years ago

I believe you'll have a better chance of getting a quick answer if you create a Plunkr and reference it. If both data sources are fetched at the same time, (and in the same request), I see no reason other than an error in the code for the second list to not have an item selected.