From 90d7f2082fa649e3160d37d788d84714a6162040 Mon Sep 17 00:00:00 2001 From: nknwns Date: Thu, 20 Mar 2025 04:12:17 +0700 Subject: [PATCH] feat: add support for vue components in useTippy --- src/composables/useTippy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composables/useTippy.ts b/src/composables/useTippy.ts index bf0137c..6916a19 100644 --- a/src/composables/useTippy.ts +++ b/src/composables/useTippy.ts @@ -232,7 +232,8 @@ export function useTippy( if (typeof target === 'function') target = target() if (target) { - instance.value = tippy(target, getProps(opts)) + //@ts-ignore + instance.value = tippy(target?.$el ?? target, getProps(opts)) //@ts-ignore target.$tippy = response }