Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes distribution of item template via named slots (Fixes 479) #480

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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