Skip to content

Commit

Permalink
fix: don't use $el
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Mar 23, 2022
1 parent a727257 commit 29e9992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/floating-vue/src/components/Popper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29e9992

Please sign in to comment.