Skip to content

Commit

Permalink
Accept that searchTerm can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Oct 4, 2021
1 parent 644e760 commit 39c8ad5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class GlobalSearchInputComponent implements AfterViewInit, OnDestroy {
this.toggleMobileSearch();
// open ng-select menu on default
jQuery('.ng-input input').focus();
} else if (this.ngSelectComponent.ngSelectInstance.searchTerm.length === 0) {
} else if (this.ngSelectComponent.ngSelectInstance.searchTerm?.length === 0) {
this.ngSelectComponent.ngSelectInstance.focus();
} else {
this.submitNonEmptySearch();
Expand Down

0 comments on commit 39c8ad5

Please sign in to comment.