Skip to content

Commit

Permalink
fix(teleport): find only container that is direct child of target
Browse files Browse the repository at this point in the history
closes #16610
  • Loading branch information
nekosaur committed Feb 10, 2023
1 parent 2d5f7e2 commit ce2b450
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 @@ -21,7 +21,7 @@ export function useTeleport (target: Ref<boolean | string | Element>) {
return undefined
}

let container = targetElement.querySelector('.v-overlay-container')
let container = targetElement.querySelector(':scope > .v-overlay-container')

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

0 comments on commit ce2b450

Please sign in to comment.