Skip to content

Commit 6a6c350

Browse files
committed
chore: upgrade @floating-ui/dom
1 parent 113c5ee commit 6a6c350

File tree

5 files changed

+20
-9
lines changed

5 files changed

+20
-9
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"floating-vue": "workspace:*"
2525
},
2626
"devDependencies": {
27-
"@floating-ui/dom": "^0.1.10",
27+
"@floating-ui/dom": "~1.1.1",
2828
"@iconify-json/lucide": "^1.1.101",
2929
"@vue/eslint-config-standard": "^8.0.1",
3030
"@vue/shared": "^3.3.4",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "pnpm -r --filter=\"./packages/*\" run build",
88
"docs": "pnpm -C docs run dev",
99
"docs:build": "pnpm run build && pnpm -C docs run build",
10+
"dev": "pnpm -C docs run dev",
1011
"lint": "pnpm -r run lint",
1112
"release": "pnpm run lint && pnpm run build && sheep release -b main"
1213
},

packages/floating-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dist"
2828
],
2929
"dependencies": {
30-
"@floating-ui/dom": "^0.1.10",
30+
"@floating-ui/dom": "~1.1.1",
3131
"vue-resize": "^2.0.0-alpha.1"
3232
},
3333
"peerDependencies": {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
shift,
77
flip,
88
arrow,
9-
getScrollParents,
9+
getOverflowAncestors,
1010
size,
1111
} from '@floating-ui/dom'
1212
import { supportsPassive, isIOS } from '../util/env'
@@ -727,8 +727,8 @@ export default () => defineComponent({
727727
// Scroll
728728
if (!this.positioningDisabled) {
729729
this.$_registerEventListeners([
730-
...getScrollParents(this.$_referenceNode),
731-
...getScrollParents(this.$_popperNode),
730+
...getOverflowAncestors(this.$_referenceNode),
731+
...getOverflowAncestors(this.$_popperNode),
732732
], 'scroll', () => {
733733
this.$_computePosition()
734734
})

pnpm-lock.yaml

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)