-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
$$slots is empty object if using customElement: true #6165
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
Comments
How are you using it in the parent component? My understanding is that |
I am using it like this <my-button>
<span slot="lefticon">L</span>
Hello World!
<span slot="icon">R</span>
</my-button> |
It looks to me like you're doing everything correctly. I remembered seeing something about custom elements causing issues and saw this issue #6164 that seems to be related. There are a few links there that could help out. |
This comment has been minimized.
This comment has been minimized.
Are these two (#6059 with this) the same issue? I'm currently facing the same issue and it's more like the |
as per the original issue title, this is a duplicate of #5594, and should have been fixed in v3.29.5 |
Problem solved by adding |
@tanhauhau just out of curiosity, what's the reasoning behind i.e. if the implementer doesn't provide something in the slot, showing some empty state message in my UI. |
$$slots is still an empty object. Even if there is a defer in the script tag =( |
When customElement option is set to true $$slots is empty object
here is my use case
The text was updated successfully, but these errors were encountered: