From 9055a61e4bfb88b221f1edb56a3910e309a247e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Mich=C3=A1lek?= Date: Mon, 27 May 2024 08:42:24 +0200 Subject: [PATCH] fix(tippy-component): use Element constructor for to prop --- src/components/Tippy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Tippy.ts b/src/components/Tippy.ts index d5d4df5..f2600c3 100644 --- a/src/components/Tippy.ts +++ b/src/components/Tippy.ts @@ -1,4 +1,4 @@ -import { defineComponent, ref, h, UnwrapNestedRefs, onMounted, nextTick, watch, unref, reactive, PropType } from 'vue' +import { defineComponent, ref, h, UnwrapNestedRefs, onMounted, nextTick, watch, unref, reactive } from 'vue' import { TippyOptions } from '../types' import { useTippy } from '../composables' import tippy from 'tippy.js' @@ -26,7 +26,7 @@ function unrefElement(elRef: any): any { const TippyComponent = defineComponent({ props: { to: { - type: [String, Function] as PropType, + type: [String, Element], }, tag: { type: [String, Object],