Browse Source

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

research/test
Dailer-刘荣歆 2 years ago
parent
commit
a59f0f68c3
  1. 2
      src/core/platform/web/dom.js

2
src/core/platform/web/dom.js

@ -720,7 +720,7 @@
* 获取position:fixed相对定位的元素 * 获取position:fixed相对定位的元素
*/ */
getPositionRelativeContainingBlock: function (element) { getPositionRelativeContainingBlock: function (element) {
if (['html', 'body', '#document'].indexOf((element.nodeName || '').toLowerCase()) >= 0) { if (BI.isIE() || ['html', 'body', '#document'].indexOf((element.nodeName || '').toLowerCase()) >= 0) {
// $FlowFixMe[incompatible-return]: assume body is always available // $FlowFixMe[incompatible-return]: assume body is always available
return element.ownerDocument.body; return element.ownerDocument.body;
} }

Loading…
Cancel
Save