This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Description Bug description:
link to PLunker
https://plnkr.co/edit/jWnLCGrhFEtywqMfArt2?p=preview
After loading datas (Roles) ui-select-match doesn't automatically assign the values.
ui-select( ng-model ='entry.doc.approval.roles_id' , theme ='bootstrap' , multiple ='true' )
ui-select-match( placeholder ='Select roles...' )
span {{$index+1}}. {{$item.data.approval_name || $item}}
ui-select-choices( repeat ='role._id as role in (Roles | filter:{data:{approval_name:$select.search}}) track by role._id' , stock-dict ='Roles' )
span( ng-bind ="role.data.approval_name" )
TypeError: Cannot read property '_id' of undefined
at checkFnMultiple ( select . js :1600 )
at Array . < anonymous > ( select . js :1616 )
at ngModelWatch ( angular . js :27547 )
at Scope . $digest ( angular . js :17277 )
at Scope . $apply ( angular . js :17552 )
at done ( angular . js :11697 )
at completeRequest ( angular . js :11903 )
at XMLHttpRequest . requestLoaded ( angular . js :11836 )
for example:
if i have ng-value:
entry . doc . approval . roles_id = [ "e4c6dca9-758e-43c8-b199-7d25b7e69296" ]
and after loading datas of Roles
Roles = [
{
_id :"e4c6dca9-758e-43c8-b199-7d25b7e69296" ,
"data" : {
"approval_name" : "Director"
}
}
]
it returns in ui-select-match:
1. e4c6dca9-758e-43c8-b199-7d25b7e69296
but this should have been:
1. Director
Angular: 1.5.3
UI-Select: 0.18.1 Reactions are currently unavailable
Bug description:
link to PLunker
https://plnkr.co/edit/jWnLCGrhFEtywqMfArt2?p=preview
After loading datas (Roles) ui-select-match doesn't automatically assign the values.
for example:
if i have ng-value:
and after loading datas of Roles
it returns in ui-select-match:
1. e4c6dca9-758e-43c8-b199-7d25b7e69296
but this should have been:
1. Director
Angular: 1.5.3
UI-Select: 0.18.1