Don't make a search when the field is changed and the value is empty
This commit is contained in:
parent
c6de16eb1d
commit
641f98b2ee
|
@ -51,7 +51,10 @@ export class SearchComponent implements OnInit {
|
|||
$event.stopPropagation();
|
||||
|
||||
this.searchCriterias.field = choice;
|
||||
this.doSearch();
|
||||
|
||||
if (this.searchCriterias.value !== '') {
|
||||
this.doSearch();
|
||||
}
|
||||
}
|
||||
|
||||
doSearch() {
|
||||
|
|
Loading…
Reference in New Issue