Skip to content

Commit

Permalink
fix(VOverlay): don't render if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jan 8, 2024
1 parent 4defaa9 commit 48906bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VOverlay/VOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const VOverlay = genericComponent<OverlaySlots>()({
}, activatorEvents.value, props.activatorProps),
})}

{ isMounted.value && hasContent.value && (
{ !props.disabled && isMounted.value && hasContent.value && (
<Teleport
disabled={ !teleportTarget.value }
to={ teleportTarget.value }
Expand Down Expand Up @@ -292,7 +292,7 @@ export const VOverlay = genericComponent<OverlaySlots>()({
>
<Scrim
color={ scrimColor }
modelValue={ isActive.value && !!props.scrim }
modelValue={ !!props.scrim && isActive.value }
{ ...scrimEvents.value }
/>
<MaybeTransition
Expand Down

0 comments on commit 48906bd

Please sign in to comment.