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

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() {