This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
'undefined' when using input. #178
Closed
Description
Things work fine when using select with options and ng-repeat, but there is a bug when using input along with a query. Selecting an option results in 'undefined' being displayed.
Plunker: http://plnkr.co/edit/gTy17Aym7MRseWNwrsEy?p=preview
The bug can also be seen in ui-select's demo project itself.
I did some debugging and found that on selecting an object, the watch on tAttrs.ngModel is triggered twice, once with a string and once with an object. If I return from the watch in the first case, everything works fine.
Related issue: #134
Metadata
Metadata
Assignees
Labels
No labels