Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Oct 11, 2023
1 parent a6bf2af commit ee0a4ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects/srm/src/app/homepage/homepage.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class HomepageComponent {
this.searching = true;
this.searchConfig.query_ = query;
this.searchConfig.queries.next(query);
this.searchConfig.focus();
}

keydown(event: KeyboardEvent) {
Expand Down
4 changes: 4 additions & 0 deletions projects/srm/src/app/search/search-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ export class SearchConfig {
this.inputEl = el;
}

focus() {
this.inputEl?.focus();
}

blur() {
this.inputEl?.blur();
}
Expand Down

0 comments on commit ee0a4ef

Please sign in to comment.