Skip to content

Commit

Permalink
fix(VOverlay): add null coalescing to true if no shadowDomRoot
Browse files Browse the repository at this point in the history
fixes #20001
  • Loading branch information
johnleider committed Jun 26, 2024
1 parent 8d6e4bd commit 27b4b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VOverlay/VOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const VOverlay = genericComponent<OverlaySlots>()({
} = 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()
Expand Down

0 comments on commit 27b4b1e

Please # to comment.