Skip to content

Commit 27b4b1e

Browse files
committed
fix(VOverlay): add null coalescing to true if no shadowDomRoot
fixes #20001
1 parent 8d6e4bd commit 27b4b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/components/VOverlay/VOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const VOverlay = genericComponent<OverlaySlots>()({
156156
} = useActivator(props, { isActive, isTop: localTop })
157157
const potentialShadowDomRoot = computed(() => (activatorEl?.value as Element)?.getRootNode() as Element)
158158
const { teleportTarget } = useTeleport(computed(() => props.attach || props.contained ||
159-
potentialShadowDomRoot.value instanceof ShadowRoot ? potentialShadowDomRoot.value : false))
159+
potentialShadowDomRoot.value instanceof ShadowRoot ? potentialShadowDomRoot.value ?? true : false))
160160
const { dimensionStyles } = useDimension(props)
161161
const isMounted = useHydration()
162162
const { scopeId } = useScopeId()

0 commit comments

Comments
 (0)