From 1bd9eb8ec20f63f48ecd492757f85c8537847247 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 22 Apr 2021 08:41:22 +0000 Subject: [PATCH] [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 --- sharedComponents/input/input.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 30c22dbf..97817e8c 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -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:[];