From 27b4b1e52060b6bee13a290a4829f935f1bd9c05 Mon Sep 17 00:00:00 2001 From: John Leider Date: Wed, 26 Jun 2024 13:50:20 -0500 Subject: [PATCH] fix(VOverlay): add null coalescing to true if no shadowDomRoot fixes #20001 --- packages/vuetify/src/components/VOverlay/VOverlay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/components/VOverlay/VOverlay.tsx b/packages/vuetify/src/components/VOverlay/VOverlay.tsx index 97e6460a56b..70cedce4870 100644 --- a/packages/vuetify/src/components/VOverlay/VOverlay.tsx +++ b/packages/vuetify/src/components/VOverlay/VOverlay.tsx @@ -156,7 +156,7 @@ export const VOverlay = genericComponent()({ } = useActivator(props, { isActive, isTop: localTop }) const potentialShadowDomRoot = computed(() => (activatorEl?.value as Element)?.getRootNode() as Element) const { teleportTarget } = useTeleport(computed(() => props.attach || props.contained || - potentialShadowDomRoot.value instanceof ShadowRoot ? potentialShadowDomRoot.value : false)) + potentialShadowDomRoot.value instanceof ShadowRoot ? potentialShadowDomRoot.value ?? true : false)) const { dimensionStyles } = useDimension(props) const isMounted = useHydration() const { scopeId } = useScopeId()