Skip to content

Commit

Permalink
fix(VOverlay): reuse container element in shadow DOM
Browse files Browse the repository at this point in the history
fixes #20276
closes #20277
  • Loading branch information
KaelWD committed Aug 4, 2024
1 parent 9b02b0d commit 3ee87ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useTeleport (target: () => (boolean | string | ParentNode)) {
return undefined
}

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

if (!container) {
container = document.createElement('div')
Expand Down

0 comments on commit 3ee87ac

Please sign in to comment.