Skip to content

showOnCreate prop not working for component using slots #317

@turijs

Description

@turijs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions