diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index 8b756a0c..d3bd3d57 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -42,10 +42,13 @@ Ext.define('Rambox.view.main.MainController', { } var webview = newTab.down('component').el.dom; - if ( webview ) { - tabPanel.getActiveTab().getWebView().blur(); - tabPanel.getActiveTab().getWebView().focus(); - } + + setTimeout(function () { + if ( webview ) { + tabPanel.getActiveTab().getWebView().blur(); + tabPanel.getActiveTab().getWebView().focus(); + } + }, 300); // Update the main window so it includes the active tab title. if ( Rambox.app.getTotalNotifications() > 0 ) {