Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
vkrms committed May 1, 2024
1 parent f4fe3d1 commit 28108a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VHover/VHover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { genericComponent, propsFactory } from '@/util'

type VHoverSlots = {
default: {
isHovering: boolean
isHovering: boolean | null
props: Record<string, unknown>
}
}
Expand Down
7 changes: 5 additions & 2 deletions packages/vuetify/src/components/VOverlay/VOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ export const makeVOverlayProps = propsFactory({
disabled: Boolean,
opacity: [Number, String],
noClickAnimation: Boolean,
modelValue: Boolean,
modelValue: {
type: [Boolean, null] as PropType<boolean | null>,
default: null,
},
persistent: Boolean,
scrim: {
type: [Boolean, String],
Expand Down Expand Up @@ -134,7 +137,7 @@ export const VOverlay = genericComponent<OverlaySlots>()({
setup (props, { slots, attrs, emit }) {
const model = useProxiedModel(props, 'modelValue')
const isActive = computed({
get: () => model.value,
get: () => Boolean(model.value),
set: v => {
if (!(v && props.disabled)) model.value = v
},
Expand Down

0 comments on commit 28108a3

Please sign in to comment.