Description
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:
- When defined as a WebComponent,
useSlots()
and$slots
return an empty object #8734 - Access $slots programmatic in customElement #6142
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