Skip to content

API for getting slots programmatically when SFC is built as Custom Element #12498

Open
@ihardyslide

Description

@ihardyslide

Vue version

3.4.10

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-xycchc?file=src%2FApp.vue

Steps to reproduce

Run and check empty slots for Custom Element/Web Component

What is expected?

Some way of accessing slots programmatically

What is actually happening?

Impossible to access slots programmatically

System Info

No response

Any additional comments?

I have decided to open another issue regarding this behaviour, because I couldn't find any solution to this problem and all related issues are closed.
I have also re-used the stackblitz example of below mentioned issue, because the reproduction code is still valid.

Related issues I have found:

I was not able to successfully access the props with any of those suggestions in the comments.
Furthermore they all sound like a workaround and not a solution to this problem, in my opinion.

I could also not find any new internal API which is providing this in the docs, maybe there is already something which I was not able to find?

Thanks & BR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions