angular / material

Material design for AngularJS
https://material.angularjs.org/
MIT License
16.57k stars 3.4k forks source link

feat(autocomplete): Confusion around `md-selected-item-change`. #10551

Open topherfangio opened 7 years ago

topherfangio commented 7 years ago

Actual Behavior:

Proposal: *

We should consider adding a separate md-on-select to the <md-autocomplete> that behaves more like the md-on-select from the <md-select> component.

AngularJS Versions: *

References #3003. References #9970.

brandonwbrown commented 7 years ago

i'm having some confusion about this. when i retrieve data from an http promise and change ctrl.searchText to the result of the promise, i'd expect the selectedItemChange to fire, but it doesn't unless i manually click on the field. only then is the searchText sent correctly and item is selected.