This commit is contained in:
Ilya Kantor 2020-12-07 17:20:04 +03:00
parent 0936245a87
commit 79c9513796

View file

@ -408,7 +408,7 @@ customElements.define('custom-menu', class extends HTMLElement {
<ul><slot name="item"></slot></ul>
</div>`;
// slottable is added/removed/replaced
// triggers when slot content changes
*!*
this.shadowRoot.firstElementChild.addEventListener('slotchange', e => {
let slot = e.target;