{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/1268","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1268/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1268/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1268/events","html_url":"https://github.com/angular-ui/ui-select/issues/1268","id":112958131,"number":1268,"title":"items not remove from dropdown list when binding deferred values with deferred data source","user":{"login":"fujye","id":1069864,"avatar_url":"https://avatars.githubusercontent.com/u/1069864?v=3","gravatar_id":"","url":"https://api.github.com/users/fujye","html_url":"https://github.com/fujye","followers_url":"https://api.github.com/users/fujye/followers","following_url":"https://api.github.com/users/fujye/following{/other_user}","gists_url":"https://api.github.com/users/fujye/gists{/gist_id}","starred_url":"https://api.github.com/users/fujye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujye/subscriptions","organizations_url":"https://api.github.com/users/fujye/orgs","repos_url":"https://api.github.com/users/fujye/repos","events_url":"https://api.github.com/users/fujye/events{/privacy}","received_events_url":"https://api.github.com/users/fujye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-23T05:55:49Z","updated_at":"2015-10-27T08:00:12Z","closed_at":null,"body":"Demo:\r\nhttp://plnkr.co/edit/cPgHc2iH0m1JAcLxFpps?p=preview\r\n\r\nAs in the demo, the data source and selected value are all deferred, that result to the \"input\" width is not correctly calculated and displayed in a seperated row with the selected items, is that a bug?\r\n\r\nPlus, when the \"input\" got focused, all items including the selected ones will show up in the dropdown list. If you select any one of the selected, an error will be throw up: Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: $item in $select.selected, Duplicate key: object:00C\r\n\r\nBut if you do a search in the \"input\", the selected items will be removed from the dropdown list correctly. Why can't it filter those items out automatically on the first pop up?"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/151406545","html_url":"https://github.com/angular-ui/ui-select/issues/1268#issuecomment-151406545","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1268","id":151406545,"user":{"login":"axos88","id":1281218,"avatar_url":"https://avatars.githubusercontent.com/u/1281218?v=3","gravatar_id":"","url":"https://api.github.com/users/axos88","html_url":"https://github.com/axos88","followers_url":"https://api.github.com/users/axos88/followers","following_url":"https://api.github.com/users/axos88/following{/other_user}","gists_url":"https://api.github.com/users/axos88/gists{/gist_id}","starred_url":"https://api.github.com/users/axos88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axos88/subscriptions","organizations_url":"https://api.github.com/users/axos88/orgs","repos_url":"https://api.github.com/users/axos88/repos","events_url":"https://api.github.com/users/axos88/events{/privacy}","received_events_url":"https://api.github.com/users/axos88/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T08:00:12Z","updated_at":"2015-10-27T08:00:12Z","body":"Just spent 3 hours on this, came to report the same bug. \r\nAlso note that if you click on one of the items that are there in the dropdown list (but also selected), the a \"duplicates in repeater\" error is raised, and the control crashes."}}