python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
If an event issued on "this" bubbles up out of my component then why do we need the "composed" property on custom events?
So I have read several pieces that say if you want a custom event to traverse the shadow DOM boundary and cross into the light DOM you need to set the custom event's composed property to true. I notic...

Roger Heathcote
Votes: 0
Answers: 4
Nested HTML element not assigning to slot
In the below code I am trying to assign <span slot='test-slot'>b</span> to <slot name='test-slot'>a</slot> but the assignment does not work. If I bring <span slot='test-slot...
Harry Stuart
Votes: 0
Answers: 1
Native web component: style host differently depending on slotted content
Say I have a native web component with an HTML template like so:
<wc-grid>
<slot></slot>
</wc-grid>
Now I have the following two use cases (one with a text input the other...
run_the_race
Votes: 0
Answers: 1
static shadowRootOptions in Litelements with Typescript, set mode to open or close
I'm currently diving into Webcomponents with Litelements: In Webcomponents you can change the way the shadowdom works by defining the mode property as 'open' or 'closed'. Like this in vanilla Javascri...
Alex
Votes: 0
Answers: 2