Skip to content

Conversation

@cailyncodes
Copy link

This PR fixes #479 by having each stamped instance of an item template inherit the slot attribute on the template item. In the _createPool function, the template is stamped and each new instance is appended as children to the template's parent node. When the template reaches the iron-list element via named slots, this will result in an incorrect distribution of the new nodes, because iron-list will not be able to correctly identify its assigned nodes.

See #479 for reasoning behind this approach over modifying the behavior of Polymer.Templatizer and a work around until this lands.

The accompanying tests use two levels of sloting to demonstrate this.

Cole Hansen added 2 commits August 17, 2017 14:56
When stamping the item template (when creating a pool), make the stamped instance inherit its template slot attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distributed children with named slot doesn't work

2 participants