I am using angular 4 and prime ng 4.3.0 to display an object; however when i select an item the whole lists select instead of just one row at a time.. is something wrong with how i defined the element?
<p-listbox formControlName="userRole" [options]="this.userRoleItems" [(ngModel)]="selectedUserRoles" multiple="multiple" [style]='{"width":"650px"}' checkbox="checkbox" filter="filter"
>
<ng-template let-userRole let-i="index" pTemplate="item" optionLabel="userRole.description">
{{userRole.code}} <span style="float:right">{{userRole.description}}</span>
</ng-template>
</p-listbox>
export class UserRole {
public id: number;
public name: string;
public code: string
public description: string;
public branchId: number;
public branchName: string;
}
