CuppaLabs / angular2-multiselect-dropdown

Angular 2 Dropdown Multiselect
https://cuppalabs.github.io/angular2-multiselect-dropdown
MIT License
298 stars 256 forks source link

False value binding to dropdown #582

Open patil-puja opened 3 years ago

patil-puja commented 3 years ago

Hi Team, I'm using library in my application and found one issue. <angular2-multiselect [data]="agentIDs" formControlName="caseOwnerId" [settings]="dropdownSettings"> Above is my HTML, using this with reactive form, and in TS binding value from JAVA response like below : caseOwnerId: [[{'id': this.wbData['caseOwnerCecId'], 'itemName': this.wbData['caseOwnerCecId']}], [Validators.required]], And even if value not present in dropdown list i.e. agentIDs its showing on UI. attaching opuput below :

image

Can you help me how to figure this?

patil-puja commented 3 years ago

Can anyone help with this?