Skip to content

Commit

Permalink
chore: upgrade @floating-ui/dom
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 16, 2023
1 parent 113c5ee commit 6a6c350
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"floating-vue": "workspace:*"
},
"devDependencies": {
"@floating-ui/dom": "^0.1.10",
"@floating-ui/dom": "~1.1.1",
"@iconify-json/lucide": "^1.1.101",
"@vue/eslint-config-standard": "^8.0.1",
"@vue/shared": "^3.3.4",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "pnpm -r --filter=\"./packages/*\" run build",
"docs": "pnpm -C docs run dev",
"docs:build": "pnpm run build && pnpm -C docs run build",
"dev": "pnpm -C docs run dev",
"lint": "pnpm -r run lint",
"release": "pnpm run lint && pnpm run build && sheep release -b main"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/floating-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dist"
],
"dependencies": {
"@floating-ui/dom": "^0.1.10",
"@floating-ui/dom": "~1.1.1",
"vue-resize": "^2.0.0-alpha.1"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/floating-vue/src/components/Popper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
shift,
flip,
arrow,
getScrollParents,
getOverflowAncestors,
size,
} from '@floating-ui/dom'
import { supportsPassive, isIOS } from '../util/env'
Expand Down Expand Up @@ -727,8 +727,8 @@ export default () => defineComponent({
// Scroll
if (!this.positioningDisabled) {
this.$_registerEventListeners([
...getScrollParents(this.$_referenceNode),
...getScrollParents(this.$_popperNode),
...getOverflowAncestors(this.$_referenceNode),
...getOverflowAncestors(this.$_popperNode),
], 'scroll', () => {
this.$_computePosition()
})
Expand Down
18 changes: 14 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a6c350

Please sign in to comment.