KABBOUCHI / vue-tippy

VueJS Tooltip powered by Tippy.js
https://vue-tippy.netlify.app
MIT License
727 stars 89 forks source link

`showOnCreate` prop not working for component using slots #317

Open turijs opened 1 month ago

turijs commented 1 month ago

Example showing issue

If I set up a simple tippy like this,

<Tippy
  :show-on-create="true"
>
  <button>trigger</button>
  <template #content>
    hello tippy
  </template>
</Tippy>

the popup is not shown initially, despite the showOnCreate prop. It looks like this is because the default implementation for onShow returns false if the content prop is not set. But in this case I am using a slot instead of the content prop.

Thanks!