Don't make a search when the field is changed and the value is empty

This commit is contained in:
Chocobozzz 2016-06-10 18:18:29 +02:00
parent c6de16eb1d
commit 641f98b2ee
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ export class SearchComponent implements OnInit {
$event.stopPropagation();
this.searchCriterias.field = choice;
this.doSearch();
if (this.searchCriterias.value !== '') {
this.doSearch();
}
}
doSearch() {