Fix handling of document.body as <frameset> (#1748)
This commit is contained in:
parent
1878b118fb
commit
ef4ea2271b
@ -503,7 +503,10 @@ class Popup extends EventDispatcher {
|
||||
}
|
||||
|
||||
_getFrameParentElement() {
|
||||
const defaultParent = document.body;
|
||||
let defaultParent = document.body;
|
||||
if (defaultParent !== null && defaultParent.tagName.toLowerCase() === 'frameset') {
|
||||
defaultParent = document.documentElement;
|
||||
}
|
||||
const fullscreenElement = DocumentUtil.getFullscreenElement();
|
||||
if (
|
||||
fullscreenElement === null ||
|
||||
|
Loading…
Reference in New Issue
Block a user