Permalink
Browse files

Core: Handle IE11 bug with document.activeElement in iframes

Fixes #11539
Closes gh-1518
  • Loading branch information...
scottgonzalez committed Mar 24, 2015
1 parent 1696405 commit 76c27556f48bea48d3787c241d35e190d46c3245
Showing with 7 additions and 0 deletions.
  1. +7 −0 ui/core.js
View
@@ -63,6 +63,13 @@ $.extend( $.ui, {
activeElement = document.body;
}
// Support: IE 11 only
// IE11 returns a seemingly empty object in some cases when accessing
// document.activeElement from an <iframe>
if ( !activeElement.nodeName ) {
activeElement = document.body;
}
return activeElement;
},

0 comments on commit 76c2755

Please sign in to comment.