[Library | Trunk]: Input component fix condition on filter

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60954 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-04-22 08:41:22 +00:00
parent 851f40da0b
commit 1bd9eb8ec2
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ export class InputComponent implements OnInit, OnDestroy, OnChanges {
private filter(value: string): Option[] {
let options = this.options;
if(this.type === "chips") {
options = options.filter(option => !this.formAsArray.value.find(value => option.value === value));
options = options.filter(option => !this.formAsArray.value.find(value => HelperFunctions.equals(option.value, value)));
}
if ((!value || value.length == 0)) {
return (this.showOptionsOnEmpty)?options:[];