diff --git a/packages/core/useElementHover/demo.vue b/packages/core/useElementHover/demo.vue index aa84fe7f2fb..f2d6af1d0ef 100644 --- a/packages/core/useElementHover/demo.vue +++ b/packages/core/useElementHover/demo.vue @@ -2,7 +2,7 @@ import { ref } from 'vue' import { useElementHover } from '@vueuse/core' -const el = ref() +const el = ref() const isHovered = useElementHover(el) diff --git a/packages/core/useElementHover/index.ts b/packages/core/useElementHover/index.ts index d15b9a832c9..28681838a38 100644 --- a/packages/core/useElementHover/index.ts +++ b/packages/core/useElementHover/index.ts @@ -3,7 +3,7 @@ import { ref } from 'vue-demi' import type { MaybeComputedRef } from '@vueuse/shared' import { useEventListener } from '../useEventListener' -export function useElementHover(el: MaybeComputedRef): Ref { +export function useElementHover(el: MaybeComputedRef): Ref { const isHovered = ref(false) useEventListener(el, 'mouseenter', () => isHovered.value = true)