mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Work around more IE activeElement bugs
Closes gh-1523
(cherry picked from commit 0de27b0609
)
This commit is contained in:
parent
eb13525fbe
commit
e3ff671ea3
@ -57,6 +57,13 @@ $.extend( $.ui, {
|
||||
activeElement = document.body;
|
||||
}
|
||||
|
||||
// Support: IE 9 - 11 only
|
||||
// IE may return null instead of an element
|
||||
// Interestingly, this only seems to occur when NOT in an iframe
|
||||
if ( !activeElement ) {
|
||||
activeElement = document.body;
|
||||
}
|
||||
|
||||
// Support: IE 11 only
|
||||
// IE11 returns a seemingly empty object in some cases when accessing
|
||||
// document.activeElement from an <iframe>
|
||||
|
Loading…
Reference in New Issue
Block a user