diff --git a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts index f493430a8..0b7703c5c 100644 --- a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +++ b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts @@ -130,17 +130,11 @@ export class AutocompleteComponent ) ) - const externalValueChange$ = this.control.valueChanges.pipe( - filter((value) => typeof value === 'object' && value.title), - map((item) => item.title) - ) - // this observable emits arrays of suggestions loaded using the given action const suggestionsFromAction = merge( newValue$.pipe( filter((value: string) => value.length >= this.minCharacterCount) - ), - externalValueChange$ + ) ).pipe( tap(() => { this.searching = true @@ -242,6 +236,7 @@ export class AutocompleteComponent } if (this.clearOnSelection) { this.inputRef.nativeElement.value = '' + this.inputCleared.emit() } } }