Browse Source

BI-127107 fix: 【来源PT项目】bi6.0.7,ie11浏览器过滤组件无法使用

es6
zsmj 2 years ago
parent
commit
6f6760bf73
  1. 5
      packages/fineui/src/core/utils/dom.js

5
packages/fineui/src/core/utils/dom.js

@ -1,9 +1,10 @@
/**
* 对DOM操作的通用函数
*/
import { Widget } from "../4.widget"
import { Widget } from "../4.widget";
import { each, isEmpty, isNull, isNotNull } from "../2.base";
import $ from "jquery";
import { isIE } from "./../platform";
export function ready(fn) {
Widget._renderEngine.createElement(document).ready(fn);
@ -751,7 +752,7 @@ export function getComboPosition(combo, popup, extraWidth, extraHeight, needAdap
* 获取position:fixed相对定位的元素
*/
export function getPositionRelativeContainingBlock(element) {
if (["html", "body", "#document"].indexOf((element.nodeName || "").toLowerCase()) >= 0) {
if (isIE() || ["html", "body", "#document"].indexOf((element.nodeName || "").toLowerCase()) >= 0) {
// $FlowFixMe[incompatible-return]: assume body is always available
return element.ownerDocument.body;
}

Loading…
Cancel
Save