bnavetta / aurelia-polymer

Aurelia plugin to support Polymer
MIT License
18 stars 5 forks source link

A workaround for repeat.for and paper-tabs, paper-menu, iron-selector, paper-listbox... #23

Closed HIRANO-Satoshi closed 7 years ago

HIRANO-Satoshi commented 7 years ago

When you have a trouble with paper-tabs, paper-radio-button, paper-menu, paper-listbox... anything that uses iron-selector inside to select an item, try this workaround.

iron-selector selects one from child elements but ignores child child elements inside a child element. (It seems not always, though.)

In the following example, the is sometimes ignored because it is not a direct child element of the .

 <paper-tabs>
    <div>
      <paper-tab>tab 0</paper-tab>
    </div>
 </paper-tabs>

When you use repeat.for, Aurelia wraps things in a