Slide 31
Slide 31 text
The encapsulation problem
we met
In the source code of , we have
to explicitly propagate the change event.
Because change events do not propagate out of
shadow DOM.
https://developers.google.com/web/fundamentals/web-
components/shadowdom#events
twoToneSlider.addEventListener("change", evt => {
this.dispatchEvent(new CustomEvent(evt.type, { detail: evt.detail }
});
31 / 33