- From: Joseph Orbegoso Pea <notifications@github.com>
- Date: Mon, 29 Aug 2016 23:26:32 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Tuesday, 30 August 2016 06:29:08 UTC
@rniwa > I think this problem also goes away if we [add back `childrenChangedCallback`](https://github.com/w3c/webcomponents/issues/550). True, if that callback would be fired when an element is upgraded, at which point we can run an `instanceof` check successfully. > For now, you can work around it by notifying parent element from a child element's connectedCallback and disconnectedCallback. But as I mentioned earlier, that (child-to-parent notification/observation) doesn't work with distribution into closed shadow trees, which is why I've changed my API to parent-to-child which should always work, just that I've had to do some hacks like with `setTimeout` above. Even with a closed tree, a parent can look into a `<slot>` and notify children, but it doesn't work the other way around, so I've settled with only parent-to-child notification/observation. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/559#issuecomment-243344957
Received on Tuesday, 30 August 2016 06:29:08 UTC