{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1713","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1713/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1713/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1713/events","html_url":"https://github.com/Polymer/polymer/issues/1713","id":83761771,"number":1713,"title":"dom-repeat is not properly updating elements on filter/sort","user":{"login":"jshcrowthe","id":5588878,"avatar_url":"https://avatars.githubusercontent.com/u/5588878?v=3","gravatar_id":"","url":"https://api.github.com/users/jshcrowthe","html_url":"https://github.com/jshcrowthe","followers_url":"https://api.github.com/users/jshcrowthe/followers","following_url":"https://api.github.com/users/jshcrowthe/following{/other_user}","gists_url":"https://api.github.com/users/jshcrowthe/gists{/gist_id}","starred_url":"https://api.github.com/users/jshcrowthe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshcrowthe/subscriptions","organizations_url":"https://api.github.com/users/jshcrowthe/orgs","repos_url":"https://api.github.com/users/jshcrowthe/repos","events_url":"https://api.github.com/users/jshcrowthe/events{/privacy}","received_events_url":"https://api.github.com/users/jshcrowthe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/p2","name":"p2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"kevinpschaaf","id":1354932,"avatar_url":"https://avatars.githubusercontent.com/u/1354932?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinpschaaf","html_url":"https://github.com/kevinpschaaf","followers_url":"https://api.github.com/users/kevinpschaaf/followers","following_url":"https://api.github.com/users/kevinpschaaf/following{/other_user}","gists_url":"https://api.github.com/users/kevinpschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinpschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinpschaaf/subscriptions","organizations_url":"https://api.github.com/users/kevinpschaaf/orgs","repos_url":"https://api.github.com/users/kevinpschaaf/repos","events_url":"https://api.github.com/users/kevinpschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/kevinpschaaf/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-06-02T00:33:55Z","updated_at":"2015-06-04T05:30:35Z","closed_at":null,"body":"When you utilize the filter/sort attributes the repeated nodes are not updating properly. This is the same behavior that was exhibited in the [Polycast](https://www.youtube.com/watch?v=2UKPRbrw3Kk&list=PLOU2XLYxmsII5c3Mgw6fNYCzaWrsM3sMN&index=5) on using core-list.\r\n\r\nRob gave a workaround for this by using `data-index=\"{{index}}\"`. This seemed to fix the issue for his use case but when using the filter and sort attributes things get weird really quick.\r\n\r\nI threw together a quick demo of this (it utilizes `iron-image` and `iron-ajax` so I opted to just give you a repo instead of a jsbin) it is [here](https://github.com/jshcrowthe/dom-repeat-bug) (Pardon the whimsical API). A link to the running demo: http://jshcrowthe.github.io/dom-repeat-bug/ (After the data loads note the position and color/images utilized then mess with the filters)."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/108732260","html_url":"https://github.com/Polymer/polymer/issues/1713#issuecomment-108732260","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/1713","id":108732260,"user":{"login":"kevinpschaaf","id":1354932,"avatar_url":"https://avatars.githubusercontent.com/u/1354932?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinpschaaf","html_url":"https://github.com/kevinpschaaf","followers_url":"https://api.github.com/users/kevinpschaaf/followers","following_url":"https://api.github.com/users/kevinpschaaf/following{/other_user}","gists_url":"https://api.github.com/users/kevinpschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinpschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinpschaaf/subscriptions","organizations_url":"https://api.github.com/users/kevinpschaaf/orgs","repos_url":"https://api.github.com/users/kevinpschaaf/repos","events_url":"https://api.github.com/users/kevinpschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/kevinpschaaf/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T05:30:34Z","updated_at":"2015-06-04T05:30:34Z","body":"@andrepl Looks like you had a couple of typos in your sample that I corrected here, which I think matches your intent? http://jsbin.com/cubaru/2/edit  For each click to `go`, it was creating a new category, but then pushing items onto `categories[0]` & `[1]`; I fixed that one way, but just creating the new items array and pushing that onto categories in one go.\r\n\r\nIf you can reproduce another issue, it'd be great if you could open a separate issue so we can track these separately."}}