diff --git a/app/assets/javascripts/discourse/routes/discourse_route.js b/app/assets/javascripts/discourse/routes/discourse_route.js index 33c2ea6ef72..41062fa152c 100644 --- a/app/assets/javascripts/discourse/routes/discourse_route.js +++ b/app/assets/javascripts/discourse/routes/discourse_route.js @@ -54,7 +54,9 @@ Discourse.Route.reopenClass({ if ($.magnificPopup && $.magnificPopup.instance) { $.magnificPopup.instance.close(); } // Remove any link focus - $(document.activeElement).blur(); + // NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7 + // cf. https://stackoverflow.com/questions/5657371/ie9-window-loses-focus-due-to-jquery-mobile + $(document.activeElement).not("body").blur(); Discourse.set('notifyCount',0); $('#discourse-modal').modal('hide');