mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
delay to search focus on current tab page
This commit is contained in:
@@ -24,7 +24,11 @@ export class CurrentController {
|
|||||||
this.inSidebar = utilsService.inSidebar($window);
|
this.inSidebar = utilsService.inSidebar($window);
|
||||||
this.disableSearch = utilsService.isEdge();
|
this.disableSearch = utilsService.isEdge();
|
||||||
|
|
||||||
document.getElementById('search').focus();
|
$scope.$on('$viewContentLoaded', function () {
|
||||||
|
$timeout(function () {
|
||||||
|
document.getElementById('search').focus();
|
||||||
|
}, 50);
|
||||||
|
});
|
||||||
|
|
||||||
$scope.$on('syncCompleted', (event: any, successfully: boolean) => {
|
$scope.$on('syncCompleted', (event: any, successfully: boolean) => {
|
||||||
if (this.loaded) {
|
if (this.loaded) {
|
||||||
|
|||||||
Reference in New Issue
Block a user