Clear autocomplete results/errors between searches

Refs #737
This commit is contained in:
Will Abson
2016-10-04 16:17:53 +01:00
parent ba710dc816
commit 4beda8e55e
2 changed files with 41 additions and 0 deletions

View File

@@ -62,6 +62,8 @@ export class AlfrescoSearchAutocompleteComponent implements OnChanges {
ngOnChanges(changes) {
if (changes.searchTerm) {
this.results = null;
this.errorMessage = null;
this.displaySearchResults(changes.searchTerm.currentValue);
}
}