Issue
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;
Solution
Kindly upgrade your primeng version up to "primeng": "^1.1.1", then this will work as well.
Answered By - Ramesh Rajendran
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.