delay to search focus on current tab page

This commit is contained in:
Kyle Spearrin 2017-12-28 13:54:17 -05:00
parent f23714a1f7
commit 0fc9e70488
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,11 @@ export class CurrentController {
this.inSidebar = utilsService.inSidebar($window);
this.disableSearch = utilsService.isEdge();
$scope.$on('$viewContentLoaded', function () {
$timeout(function () {
document.getElementById('search').focus();
}, 50);
});
$scope.$on('syncCompleted', (event: any, successfully: boolean) => {
if (this.loaded) {