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 I use a sort function on a dom-repeat template and call splice to remove more than 10 items from the list at once, the following exception is thrown and the splice is only partially applied:
For some reason, removing 10 items or less is fine. Here is a minimal example for reproducing the problem:
<dom-moduleid="list-test"><template><templateis="dom-repeat" items="{{ items }}" sort="sort"><div>{{ item }}</div></template><buttonon-tap="removeItems">Remote first 11 items</button></template><script>Polymer({is: "list-test",properties: {items: {type: Array,value: [0,1,2,3,4,5,6,7,8,9,10,11]}},sort: function(a,b){returna-b;},removeItems: function(){// This causes an exception// Removing less than 11 items is fine for some reasonthis.splice("items",0,11);}});</script></dom-module>
The text was updated successfully, but these errors were encountered:
When I use a sort function on a
dom-repeat
template and callsplice
to remove more than 10 items from the list at once, the following exception is thrown and the splice is only partially applied:For some reason, removing 10 items or less is fine. Here is a minimal example for reproducing the problem:
The text was updated successfully, but these errors were encountered: