SITUATION:
In my app I am using angular ui-select displaying a list of people (array of objects).
It is working fine except one little issue:
The first item of the list is not selectable. I cannot choose it.
CODE:
<ui-select multiple tagging tagging-label="new tag" ng-model="multipleDemo.selectedPeople" theme="select2" ng-disabled="disabled" style="width: 800px;">
<ui-select-match placeholder="Select person...">{{$item.name}} <{{$item.email}}></ui-select-match>
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
<div ng-bind-html="person.name | highlight: $select.search"></div>
<small>
email: {{person.email}}
age: <span ng-bind-html="''+person.age | highlight: $select.search"></span>
</small>
</ui-select-choices>
</ui-select>
PLUNKER:
http://plnkr.co/edit/CVaMvt4zBUBD2QEsfIdk?p=preview
QUESTION:
How can i select the first item in angular ui-select - array of objects?
NOTE:
The answer from Alexander is the correct one because give a solution to this problem for ui-select which version is < than 0.9.5.
From version 0.9.5. this problem has been resolved.
This was the issue opened in GitHub:
https://github.com/angular-ui/ui-select/issues/477#issuecomment-66795541