Closed toymachiner62 closed 9 years ago
I see a problem with your code. You are assigning allUsers
to your ng-model
attribute, which is the same as your ng-options
variable. My guess is that as soon as you select an item from the dropdown, allUsers
is overwritten with your selected value. Try changing your ng-model
(to something like ng-model="selectedUser"
) and see if that fixes the issue.
Im trying to implement js-custom-select with an async server side call to select user emails. It works great the first time, but when you click the selected email to re-open the dropdown, the list is empty.
How can I make it so the list is populated with emails after clicking the selected email to re-open the dropdown?