Project

General

Profile

« Previous | Next » 

Revision 60954

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

View differences:

modules/uoa-services-library/trunk/ng-openaire-library/src/app/sharedComponents/input/input.component.ts
323 323
  private filter(value: string): Option[] {
324 324
    let options = this.options;
325 325
    if(this.type === "chips") {
326
      options = options.filter(option => !this.formAsArray.value.find(value => option.value === value));
326
      options = options.filter(option => !this.formAsArray.value.find(value =>  HelperFunctions.equals(option.value, value)));
327 327
    }
328 328
    if ((!value || value.length == 0)) {
329 329
      return (this.showOptionsOnEmpty)?options:[];

Also available in: Unified diff