PrimeNG: p-autoComplete not clearing value

Viewed 6476

I am using PrimeNG. I wrote code for auto-complete as follows

<p-autoComplete name="searchSuggestions" [(ngModel)]="suggestion" 
(completeMethod)="searchSuggestions($event)" [suggestions]="searchSuggestionsResult" field="field"></p-autoComplete>

I am clearing suggestion in a method, but not clearing autocomplete input value. It's clearing only if I select from suggestions.

this.suggestion = undefined;
2 Answers
Related