aupac / ember-aupac-typeahead

ember-cli ajax typeahead search component
MIT License
25 stars 38 forks source link

Not possible to use two on the same page #51

Closed robertbenjamin closed 6 years ago

robertbenjamin commented 7 years ago

It seems that the selection property is fixed and set globally for each page's scope. This means that if you have two typeahead autocomplete components on the same page, they will override each other's selection property, making it impossible to use two at the same time.

I think it would make the most sense for this component to require you to pass the name of the selection property to change where the selected value is stored, thus allowing you to use as many as necessary.

jackmatt2 commented 7 years ago

This should not be the case unless you are binding to the exact same selection property.