Skip to content

Commit

Permalink
fix(VHover): false isHovering by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vkrms committed Apr 17, 2024
1 parent 71d4118 commit e82c722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 | undefined
isHovering: boolean
props: Record<string, unknown>
}
}
Expand All @@ -32,11 +32,11 @@ export const VHover = genericComponent<VHoverSlots>()({
},

setup (props, { slots }) {
const isHovering = useProxiedModel(props, 'modelValue')
const isHovering = useProxiedModel(props, 'modelValue', false)
const { runOpenDelay, runCloseDelay } = useDelay(props, value => !props.disabled && (isHovering.value = value))

return () => slots.default?.({
isHovering: isHovering.value,
isHovering: Boolean(isHovering.value),
props: {
onMouseenter: runOpenDelay,
onMouseleave: runCloseDelay,
Expand Down

0 comments on commit e82c722

Please sign in to comment.