everything works like a champ so far. Calling Polymer.dom(content).getDistributedNodes() returns the 3 items.
However, if I remove an item from the list,
this.splice("list", 2, 1);
while the template renders just fine, getDistributedNodes() still returns the full 3 items - when I expect 2 items. This works correctly under native shadow dom behaviour and I thought it should be normalised.
…ion points with logical info only if necessary.
Fixes #2283: when a node is removed, we need to potentially distribute not only its host but also its parent.
Hi, I'm not sure if this is expected behavior. Say I have an element
<x-test>that selects and inserts content from its parent,<x-test>and from my parent, I call it like that,
<parent-element>where
<parent-element>'slistarray looks likeeverything works like a champ so far. Calling
Polymer.dom(content).getDistributedNodes()returns the 3 items.However, if I remove an item from the list,
while the template renders just fine,
getDistributedNodes()still returns the full 3 items - when I expect 2 items. This works correctly under native shadow dom behaviour and I thought it should be normalised.Here is a repro: http://jsbin.com/xebelufika/edit?html,output
Try adding some items, log the nodes, remove some, log the nodes, then add again. It seems that adding an item corrects this behavior.
Thanks so much,
Jason