Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showOnCreate prop not working for component using slots #317

Open
turijs opened this issue Aug 15, 2024 · 0 comments
Open

showOnCreate prop not working for component using slots #317

turijs opened this issue Aug 15, 2024 · 0 comments
Labels

Comments

@turijs
Copy link

turijs commented Aug 15, 2024

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!

@KABBOUCHI KABBOUCHI added the bug label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants