We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e973548 commit eacaeedCopy full SHA for eacaeed
src/anchored-position.ts
@@ -206,7 +206,7 @@ function isOnTopLayer(element: Element) {
206
function getClippingRect(element: Element): BoxPosition {
207
let parentNode: typeof element.parentNode = element
208
while (parentNode !== null) {
209
- if (parentNode === document.body) {
+ if (!(parentNode instanceof Element)) {
210
break
211
}
212
const parentNodeStyle = getComputedStyle(parentNode as Element)
0 commit comments