[WICG/webcomponents] slotChange event is not working on anything but the slot attribute change (#937)

hello,

first: i was pointed here by this bug, i created:
https://bugzilla.mozilla.org/show_bug.cgi?id=1724680

the problem is the following: 
i have a webcomponent which uses slots. And i want to detect when there is a change in those slots, especially in attributes and the inner text of the elelment. i want to catch this change and refresh my web-component

but currently the slotChange event is only triggered when the slot attribute is changed, which is very limited.

there is a workaround being the use of the MutationObserver assigned to the webComponent root (not shadow root!).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/937

Received on Monday, 9 August 2021 12:17:54 UTC