Click on search icon shall put focus in input when input is empty

Fixes https://community.openproject.com/wp/29636
pull/7106/head
Wieland Lindenthal 6 years ago
parent bd26251eac
commit 240ed500c6
  1. 2
      frontend/src/app/modules/global_search/global-search-input.component.ts

@ -137,6 +137,8 @@ export class GlobalSearchInputComponent implements OnInit, OnDestroy {
this.toggleMobileSearch();
// open ng-select menu on default
jQuery('.ng-input input').focus();
} else if (this.ngSelectComponent.filterValue.length === 0) {
this.ngSelectComponent.focus();
} else {
this.submitNonEmptySearch();
}

Loading…
Cancel
Save