From 29e99924f681e2b77fdfd7c87da2e5ea62ab7a50 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Wed, 23 Mar 2022 13:07:05 +0100 Subject: [PATCH] fix: don't use $el --- packages/floating-vue/src/components/Popper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/floating-vue/src/components/Popper.ts b/packages/floating-vue/src/components/Popper.ts index 2d27a365..28ec80fd 100644 --- a/packages/floating-vue/src/components/Popper.ts +++ b/packages/floating-vue/src/components/Popper.ts @@ -977,7 +977,7 @@ export default () => defineComponent({ }, $_isAimingPopper () { - const referenceBounds: DOMRect = this.$el.getBoundingClientRect() + const referenceBounds: DOMRect = this.$_referenceNode.getBoundingClientRect() if (mouseX >= referenceBounds.left && mouseX <= referenceBounds.right && mouseY >= referenceBounds.top && mouseY <= referenceBounds.bottom) { const popperBounds: DOMRect = this.$_popperNode.getBoundingClientRect() const vectorX = mouseX - mousePreviousX