From b63c81b25bbbacd5cec4da61c07aa6b7640aca0a Mon Sep 17 00:00:00 2001 From: windy Date: Tue, 12 Sep 2023 18:24:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(BI-134501):=20=E4=B8=BB=E7=BA=BF=E4=B8=8D?= =?UTF-8?q?=E6=89=BE=E6=9C=80=E5=A4=96=E5=B1=82body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/utils/dom.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/fineui/src/core/utils/dom.js b/packages/fineui/src/core/utils/dom.js index a2aaa2d76..7bc8bb36b 100644 --- a/packages/fineui/src/core/utils/dom.js +++ b/packages/fineui/src/core/utils/dom.js @@ -794,13 +794,15 @@ export function getPositionRelativeContainingBlockRect(element) { */ export function getOuterBody() { // 默认挂在body上的都找最外层的body - let parentWindow = window; - let body = document.body; - try { - while (parentWindow.parent !== parentWindow) { - parentWindow = parentWindow.parent; - } - body = parentWindow.document.body; - } catch (e) {} - return body; + // let parentWindow = window; + // let body = document.body; + // try { + // while (parentWindow.parent !== parentWindow) { + // parentWindow = parentWindow.parent; + // } + // body = parentWindow.document.body; + // } catch (e) {} + // return body; + + return document.body; }