Input: for get labels use optionsArray instead of filtered options

This commit is contained in:
argirok 2022-05-11 10:17:06 +03:00
parent 0067239cb6
commit a0df132a6b
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang
} }
getLabel(value: any) { getLabel(value: any) {
let option = this.filteredOptions.find(option => HelperFunctions.equals(option.value, value)); let option = this.optionsArray.find(option => HelperFunctions.equals(option.value, value));
return (option) ? option.label : (value); return (option) ? option.label : (value);
} }