PrimeNG: p-autoComplete not clearing value
I am using PrimeNG. I wrote the auto-fill code as follows
<p-autoComplete name="searchSuggestions" [(ngModel)]="suggestion"
(completeMethod)="searchSuggestions($event)" [suggestions]="searchSuggestionsResult" field="field"></p-autoComplete>
I am clearing suggestion
in the method but not clearing the autocomplete input value. It only clears if I choose from suggestions.
this.suggestion = undefined;
+3
user4874420
source
to share
2 answers