Skip to content

Commit

Permalink
fix(VOverlay): forward scoped styles attribute
Browse files Browse the repository at this point in the history
fixes #16213
  • Loading branch information
KaelWD committed Dec 13, 2022
1 parent 74f7601 commit 7adbc22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vuetify/src/components/VOverlay/VOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useBackgroundColor } from '@/composables/color'
import { useProxiedModel } from '@/composables/proxiedModel'
import { useHydration } from '@/composables/hydration'
import { useRtl } from '@/composables/locale'
import { useScopeId } from '@/composables/scopeId'
import { useStack } from '@/composables/stack'
import { useTeleport } from '@/composables/teleport'
import { useToggleScope } from '@/composables/toggleScope'
Expand Down Expand Up @@ -149,6 +150,7 @@ export const VOverlay = genericComponent<new () => {
const { activatorEl, activatorRef, activatorEvents, contentEvents, scrimEvents } = useActivator(props, { isActive, isTop: localTop })
const { dimensionStyles } = useDimension(props)
const isMounted = useHydration()
const { scopeId } = useScopeId()

watch(() => props.disabled, v => {
if (v) isActive.value = false
Expand Down Expand Up @@ -262,7 +264,8 @@ export const VOverlay = genericComponent<new () => {
]}
style={[stackStyles.value, { top: convertToUnit(top.value) }]}
ref={ root }
{...attrs}
{ ...scopeId }
{ ...attrs }
>
<Scrim
color={ scrimColor }
Expand Down

0 comments on commit 7adbc22

Please sign in to comment.