@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.
- package/es/hooks/useAlign.js +3 -0
- package/lib/hooks/useAlign.js +3 -0
- package/package.json +1 -1
package/es/hooks/useAlign.js
CHANGED
|
@@ -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,
|
package/lib/hooks/useAlign.js
CHANGED
|
@@ -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,
|