File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/vuetify/src/components/VOverlay Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ export const VOverlay = genericComponent<OverlaySlots>()({
140
140
if ( ! ( v && props . disabled ) ) model . value = v
141
141
} ,
142
142
} )
143
- const { teleportTarget } = useTeleport ( computed ( ( ) => props . attach || props . contained ) )
144
143
const { themeClasses } = provideTheme ( props )
145
144
const { rtlClasses, isRtl } = useRtl ( )
146
145
const { hasContent, onAfterLeave : _onAfterLeave } = useLazy ( props , isActive )
@@ -155,6 +154,9 @@ export const VOverlay = genericComponent<OverlaySlots>()({
155
154
contentEvents,
156
155
scrimEvents,
157
156
} = useActivator ( props , { isActive, isTop : localTop } )
157
+ const potentialShadowDomRoot = computed ( ( ) => ( activatorEl ?. value as Element ) ?. getRootNode ( ) as Element )
158
+ const { teleportTarget } = useTeleport ( computed ( ( ) => props . attach || props . contained ||
159
+ potentialShadowDomRoot . value instanceof ShadowRoot ? potentialShadowDomRoot . value : false ) )
158
160
const { dimensionStyles } = useDimension ( props )
159
161
const isMounted = useHydration ( )
160
162
const { scopeId } = useScopeId ( )
You can’t perform that action at this time.
0 commit comments