You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was wondering if there is any easy way to access the dom element of a slot? If we need some kind of anchors, is it possible to use a comment or even a text node? Many thanks.
The text was updated successfully, but these errors were encountered:
For default slots (and hopefully eventually for named slots) there isn't necessarily a single top-level DOM element associated with the slot. There's an open issue #2106 for providing an official way of seeing whether a slot has content, but I don't think there's been much discussion about what the exposed value would be, besides truthy vs falsy.
If you're asking for something like bind:this on comment nodes, that seems niche enough that it would be very low priority if it were accepted as a proposed feature.
i.e. currently I have something like this in my component.
Was wondering if there is any easy way to access the dom element of a slot? If we need some kind of anchors, is it possible to use a comment or even a text node? Many thanks.
The text was updated successfully, but these errors were encountered: