PolymerElements / iron-selector

Manages a list of elements that can be selected
32 stars 55 forks source link

Fix initialization of items, selected properties #135

Closed martijneken closed 8 years ago

martijneken commented 8 years ago

Fixes iron-selector issue #134.

martijneken commented 8 years ago

Note: another (less reliable) way of resolving this is to define the 'items' property before/above the 'selected' property. My version of Chrome iterates the properties in order of their definition...

martijneken commented 8 years ago

I'm still digging around trying to understand why I'm seeing this only in my local build. It seems related to the fact that my iron-pages element cannot find its host during _registerHost: https://github.com/Polymer/polymer/blob/edb59eb6283074ce54f374b30b884c9f9fcf9f5f/src/mini/ready.html#L65

martijneken commented 8 years ago

This actually was indicative of a deeper problem in my BUILD. Elements were registering out of order, which broke data binding, which indirectly broke initialization.