oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

Multiple Dropdowns? #129

Closed JustServ closed 7 years ago

JustServ commented 7 years ago

I have a form array, wanted to use this, but when I do it opens a drop down on every instance instead of just the one I'm typing. Then they don't close when I click-away. Is it possible to do this?

oferh commented 7 years ago

@JustServ you need to create a different dataProvider for each item

Rebolon commented 7 years ago

i dislike this solution because if your auto-complete could use the same dataProvider, you Have to duplicate your code.... There isn't any way to clone the dataProvider, or to inject it multiple times in our component ?

oferh commented 7 years ago

you can now pass an array as input to datasource

Rebolon commented 7 years ago

ok, i'll gie a try to this, thx