You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an array of numbers as the items for iron-list, having duplicate values in the array causes the selection behavior to select the wrong item.
Expected outcome
The item at the index clicked is selected
Actual outcome
A different item with the same value, but at an index that was not clicked is selected
Ah I had missed that, thanks @blasten. I had noticed the behavior when playing with the jsbins referenced in the README when evaluating iron-list (which all demonstrate using an array of numbers).
I did not notice the same problem as my data set is an array of objects (although it did make me hesitant to use the iron-list element). I imagine the common use case in an array of objects instead of primitives. It might be useful to have the examples demonstrate that use case and / or have this limitation using arrays of primitives documented.
The original question of this issue was definitely a duplicate of Polymer/polymer#1913
The second question of whether the jsbin examples should not demonstrate arrays of numbers as that causes strange behavior seems moot as the jsbin examples are non-functional: #465
I'll just close this issue and a separate issue could be opened for the jsbin iron-list examples using numerics.
Description
When using an array of numbers as the items for iron-list, having duplicate values in the array causes the selection behavior to select the wrong item.
Expected outcome
The item at the index clicked is selected
Actual outcome
A different item with the same value, but at an index that was not clicked is selected
Live Demo
http://jsbin.com/jusenih/1/edit?html,output
Steps to reproduce
Browsers Affected
^ Browsers reproducing the behavior
^ Firefox Nightly reproduces intermittently
The text was updated successfully, but these errors were encountered: