Skip to content

Commit 29e9992

Browse files
committed
fix: don't use $el
1 parent a727257 commit 29e9992

File tree

1 file changed

+1
-1
lines changed
  • packages/floating-vue/src/components

1 file changed

+1
-1
lines changed

packages/floating-vue/src/components/Popper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ export default () => defineComponent({
977977
},
978978

979979
$_isAimingPopper () {
980-
const referenceBounds: DOMRect = this.$el.getBoundingClientRect()
980+
const referenceBounds: DOMRect = this.$_referenceNode.getBoundingClientRect()
981981
if (mouseX >= referenceBounds.left && mouseX <= referenceBounds.right && mouseY >= referenceBounds.top && mouseY <= referenceBounds.bottom) {
982982
const popperBounds: DOMRect = this.$_popperNode.getBoundingClientRect()
983983
const vectorX = mouseX - mousePreviousX

0 commit comments

Comments
 (0)