indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

Selector filter shows selected objects as well #29

Closed shrayasr closed 8 years ago

shrayasr commented 8 years ago

Hi, :hand:

We're facing an issue when we try to populate the selector with data received via a HTTP request.

Steps to reproduce


We were able to reproduce this without a HTTP request as well. If the list is loaded on a simple button click, the same issue happens. Here's a GIF illustrating the problem:

The code that generates this :arrow_up: problem can be found in a plunker here: http://plnkr.co/edit/qeuxv2xP6zj6r3gxmPJO?p=preview


Please let us know if we can help you with any other information. Thanks so much for this. It has helped us out greatly! :beers: :blush:

indrimuska commented 8 years ago

Hi @shrayasr, thank you for filing this and for providing a plunker. Very nicely written description! :)

This bug is due to a missing filtering of the dropdown list after every value update. I will resolve this in a minute :)

indrimuska commented 8 years ago

This fix is now available in v1.3.1. Thank you guys for reporting this issue :)

shrayasr commented 8 years ago

Hi @shrayasr, thank you for filing this and for providing a plunker. Very nicely written description! :)

You're very welcome :)

This bug is due to a missing filtering of the dropdown list after every value update. I will resolve this in a minute :) This fix is now available in v1.3.1.

WOW :scream: You're awesome! Thanks a ton for such a quick fix. We owe you :blush: :+1: