Skip to content

Commit 3ee87ac

Browse files
committed
fix(VOverlay): reuse container element in shadow DOM
fixes #20276 closes #20277
1 parent 9b02b0d commit 3ee87ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/composables/teleport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function useTeleport (target: () => (boolean | string | ParentNode)) {
1818
return undefined
1919
}
2020

21-
let container = targetElement.querySelector(':scope > .v-overlay-container')
21+
let container = [...targetElement.children].find(el => el.matches('.v-overlay-container'))
2222

2323
if (!container) {
2424
container = document.createElement('div')

0 commit comments

Comments
 (0)