Fixes #4174
Fixed the non-autofocus search-input-element on the search-page. Added directive 'osAutofocus' to the input-element, so it will be autofocussed when the user enters the search-component. Resolved answers of pull-request - Added `osAutofocus` to the `os-sort-filter-bar`
This commit is contained in:
parent
cf5a5b4c0e
commit
b6295952ba
@ -35,6 +35,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<mat-form-field *ngIf="isSearchBar">
|
<mat-form-field *ngIf="isSearchBar">
|
||||||
<input
|
<input
|
||||||
|
osAutofocus
|
||||||
matInput
|
matInput
|
||||||
(keyup)="applySearch($event, $event.target.value)"
|
(keyup)="applySearch($event, $event.target.value)"
|
||||||
placeholder="{{ translate.instant('Search') }}"
|
placeholder="{{ translate.instant('Search') }}"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="search-field">
|
<div class="search-field">
|
||||||
<form [formGroup]="quickSearchform">
|
<form [formGroup]="quickSearchform">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput formControlName="query" (keyup)="quickSearch()" />
|
<input matInput osAutofocus formControlName="query" (keyup)="quickSearch()" />
|
||||||
<mat-icon matSuffix>search</mat-icon>
|
<mat-icon matSuffix>search</mat-icon>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user