mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Core: Handle IE11 bug with document.activeElement in iframes
Fixes #11539 Closes gh-1518
This commit is contained in:
parent
1696405c09
commit
76c27556f4
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user