set focus manually before search text
This commit is contained in:
parent
190bc5b90c
commit
fee87030de
|
@ -3,8 +3,7 @@
|
||||||
<app-pop-out></app-pop-out>
|
<app-pop-out></app-pop-out>
|
||||||
</div>
|
</div>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<input type="search" placeholder="{{'searchVault' | i18n}}" id="search"
|
<input type="search" placeholder="{{'searchVault' | i18n}}" id="search" [(ngModel)]="searchText">
|
||||||
[(ngModel)]="searchText" appAutofocus>
|
|
||||||
<i class="fa fa-search"></i>
|
<i class="fa fa-search"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
|
|
|
@ -78,6 +78,8 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
document.getElementById('search').focus();
|
||||||
|
|
||||||
this.showLeftHeader = !this.platformUtilsService.isSafari() &&
|
this.showLeftHeader = !this.platformUtilsService.isSafari() &&
|
||||||
!(this.popupUtils.inSidebar(window) && this.platformUtilsService.isFirefox());
|
!(this.popupUtils.inSidebar(window) && this.platformUtilsService.isFirefox());
|
||||||
this.stateService.remove('CiphersComponent');
|
this.stateService.remove('CiphersComponent');
|
||||||
|
|
Loading…
Reference in New Issue