{"action":"reopened","issue":{"url":"https://api.github.com/repos/PolymerElements/iron-selector/issues/82","repository_url":"https://api.github.com/repos/PolymerElements/iron-selector","labels_url":"https://api.github.com/repos/PolymerElements/iron-selector/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/iron-selector/issues/82/comments","events_url":"https://api.github.com/repos/PolymerElements/iron-selector/issues/82/events","html_url":"https://github.com/PolymerElements/iron-selector/issues/82","id":114500871,"number":82,"title":"wrong selected value when use dom-repeat","user":{"login":"duongphuhiep","id":1638594,"avatar_url":"https://avatars.githubusercontent.com/u/1638594?v=3","gravatar_id":"","url":"https://api.github.com/users/duongphuhiep","html_url":"https://github.com/duongphuhiep","followers_url":"https://api.github.com/users/duongphuhiep/followers","following_url":"https://api.github.com/users/duongphuhiep/following{/other_user}","gists_url":"https://api.github.com/users/duongphuhiep/gists{/gist_id}","starred_url":"https://api.github.com/users/duongphuhiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongphuhiep/subscriptions","organizations_url":"https://api.github.com/users/duongphuhiep/orgs","repos_url":"https://api.github.com/users/duongphuhiep/repos","events_url":"https://api.github.com/users/duongphuhiep/events{/privacy}","received_events_url":"https://api.github.com/users/duongphuhiep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-01T23:33:09Z","updated_at":"2016-02-11T01:40:26Z","closed_at":null,"body":"I use iron-selector on a dom-repeat a list of item\r\n\r\nFirst I set the selected value to `foo` then set the list to  `[\"bar\", \"foo\"]` and I saw `foo` is selected as expected. But then, I set the list to  `[\"foo\", \"rock\"]`, the selected value is always `foo`, but now the real selected node is `rock`, not `foo`. So the selected value is no longer tells the real selected node.\r\n\r\n```\r\n<dom-module id=\"repeat-list\">\r\n    <template>\r\n        <style>\r\n            .iron-selected {\r\n                background: yellow;\r\n            }\r\n        </style>\r\n        <ul>\r\n        <iron-selector selected-items=\"{{selectedItems}}\"\r\n                       attr-for-selected=\"someAttr\"\r\n                       selected=\"{{valueSelected}}\">\r\n            <template id=\"repeater\" is=\"dom-repeat\" items=\"{{list}}\">\r\n                <li some-attr={{item}}>{{item}}</li>\r\n            </template>\r\n        </iron-selector>\r\n        </ul>\r\n        First selected item: <span>{{selectedItems.0}}</span><br/>\r\n        Value selected: <span>{{valueSelected}}</span>\r\n    </template>\r\n\r\n    <script>\r\n        Polymer({\r\n            is: \"repeat-list\",\r\n            properties: {\r\n                list: Array,\r\n                selectedItems: Array,\r\n                valueSelected: {\r\n                    type: String,\r\n                    notify: true\r\n                }\r\n            },\r\n            ready: function() {\r\n                this.valueSelected=\"foo\";\r\n\r\n                var _this = this;\r\n                setTimeout(function(){\r\n                    _this.list = [\"bar\", \"foo\"]; //ok, foo is selected\r\n                }, 1000);\r\n\r\n                setTimeout(function(){\r\n                    _this.list = [\"foo\", \"rock\"]; //ko! valueSelected=\"foo\" but \"bar\" item is selected\r\n                }, 2000);\r\n            }\r\n        });\r\n    </script>\r\n</dom-module>\r\n```"}}