KABBOUCHI/vue-tippy

Library tries to resolve `'span'`, the default `tag` / `contentTag` as a Component

pvanagtmaal opened this issue · 1 comments

Hi!

I noticed our vue-tippy components were triggering Vue warnings:

[Vue warn]: Failed to resolve component: span If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 

This happens in version 6.0.0 and 6.1.0, with Vue 3.2.47

I have tried all three setup modes, and the error only triggers for the component setup.

<script setup lang="ts">
import { Tippy, useTippy } from 'vue-tippy'
import { ref } from 'vue'

const composition = ref()
useTippy(composition, { content: 'hello composition api!' })
</script>

<template>
  <main>
    <tippy content="hello component!">
      <div>Hover me</div>
    </tippy>

    <div ref="composition">Hover me too</div>

    <div v-tippy="'hello directive!'">And me!</div>
  </main>
</template>

I'd be happy to submit a PR if you can point me in the right direction!

@pvanagtmaal plz update to 6.1.1