@rc-component/trigger 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -142,6 +142,9 @@ export default function useAlign(open, popupEle, target, placement, builtinPlace
142
142
  bottom: clientHeight
143
143
  };
144
144
  (scrollerList || []).forEach(function (ele) {
145
+ if (ele instanceof HTMLBodyElement) {
146
+ return;
147
+ }
145
148
  var eleRect = ele.getBoundingClientRect();
146
149
  var eleOutHeight = ele.offsetHeight,
147
150
  eleInnerHeight = ele.clientHeight,
@@ -150,6 +150,9 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
150
150
  bottom: clientHeight
151
151
  };
152
152
  (scrollerList || []).forEach(function (ele) {
153
+ if (ele instanceof HTMLBodyElement) {
154
+ return;
155
+ }
153
156
  var eleRect = ele.getBoundingClientRect();
154
157
  var eleOutHeight = ele.offsetHeight,
155
158
  eleInnerHeight = ele.clientHeight,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/trigger",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "base abstract trigger component for react",
5
5
  "engines": {
6
6
  "node": ">=8.x"