{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/1467","repository_url":"https://api.github.com/repos/angular-ui/ui-select","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1467/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1467/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1467/events","html_url":"https://github.com/angular-ui/ui-select/issues/1467","id":137336518,"number":1467,"title":"Error: [ui.select:choices] Expected multiple .ui-select-choices-row but got '0'.","user":{"login":"MacGyver27","id":6546231,"avatar_url":"https://avatars.githubusercontent.com/u/6546231?v=3","gravatar_id":"","url":"https://api.github.com/users/MacGyver27","html_url":"https://github.com/MacGyver27","followers_url":"https://api.github.com/users/MacGyver27/followers","following_url":"https://api.github.com/users/MacGyver27/following{/other_user}","gists_url":"https://api.github.com/users/MacGyver27/gists{/gist_id}","starred_url":"https://api.github.com/users/MacGyver27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MacGyver27/subscriptions","organizations_url":"https://api.github.com/users/MacGyver27/orgs","repos_url":"https://api.github.com/users/MacGyver27/repos","events_url":"https://api.github.com/users/MacGyver27/events{/privacy}","received_events_url":"https://api.github.com/users/MacGyver27/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-select/labels/PRs%20plz!","name":"PRs plz!","color":"02D7E1"},{"url":"https://api.github.com/repos/angular-ui/ui-select/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-02-29T18:47:12Z","updated_at":"2016-09-12T00:36:11Z","closed_at":null,"body":"Hey,\r\n\r\nI am getting this error message `Error: [ui.select:choices] Expected multiple .ui-select-choices-row but got '0'.` when I select item from drop down list. (ui-select 0.14.9 (even 0.14.0), angular 1.5.0 or angular 1.4.9). Basically since 0.14.0 with both angular 1.4.x or 1.5.0.\r\n\r\n```\r\nError: [ui.select:choices] http://errors.angularjs.org/1.5.0/ui.select/choices?p0=Expected%20multiple%20.ui-select-choices-row%20but%20got%20'%7B0%7D'.&p1=0\r\n    at select.js:125\r\n    at _ensureHighlightVisible (select.js:853)\r\n    at ctrl.focusSearchInput (select.js:405)\r\n    at select.js:389\r\n    at angular.js:18744\r\n    at e (angular.js:5804)\r\n    at angular.js:6081\r\n```\r\nIt gets generated instant many times after I select.. \r\n\r\nAlso other effect is that I cannot scroll immediately.. It gets stuck for about 2s (200 items) and then it allows me to scroll/select and is smooth again.\r\n\r\nMy setup (does the same without classes):\r\n```\r\n<ui-select multiple ng-model=\"maintenance.devices\">\r\n    <ui-select-match class=\"ui-select-match\" placeholder=\"select device...\">\r\n        {{$item.hostname}}\r\n    </ui-select-match>\r\n    <ui-select-choices class=\"ui-select-choices\" repeat=\"ne in networkElements | filter: $select.search\">\r\n        <div ng-bind-html=\"ne.hostname | highlight: $select.search\"></div>\r\n        <div ng-bind-html=\"ne.ip | highlight: $select.search\"></div>\r\n    </ui-select-choices>\r\n</ui-select>\r\n```\r\n\r\nSo far working configuration for me was **only ui-select 0.13.2 and Angular 1.4.9** without classes specified:\r\n```\r\n<ui-select multiple ng-model=\"maintenance.devices\">\r\n    <ui-select-match placeholder=\"select devices...\">{{$item.hostname}}</ui-select-match>\r\n    <ui-select-choices repeat=\"ne in networkElements | filter:$select.search\">\r\n        <span ng-bind-html=\"ne.hostname | highlight:$select.search\"></span>\r\n        <span ng-bind-html=\"ne.ip | highlight:$select.search\"></span>\r\n    </ui-select-choices>\r\n</ui-select>\r\n```\r\nNo issues with scrolling and (list load) lag either. Smooth right after the page refresh.\r\n\r\nAny inputs will help me. Thanks, Michal"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/246215670","html_url":"https://github.com/angular-ui/ui-select/issues/1467#issuecomment-246215670","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1467","id":246215670,"user":{"login":"pradt","id":9876466,"avatar_url":"https://avatars.githubusercontent.com/u/9876466?v=3","gravatar_id":"","url":"https://api.github.com/users/pradt","html_url":"https://github.com/pradt","followers_url":"https://api.github.com/users/pradt/followers","following_url":"https://api.github.com/users/pradt/following{/other_user}","gists_url":"https://api.github.com/users/pradt/gists{/gist_id}","starred_url":"https://api.github.com/users/pradt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradt/subscriptions","organizations_url":"https://api.github.com/users/pradt/orgs","repos_url":"https://api.github.com/users/pradt/repos","events_url":"https://api.github.com/users/pradt/events{/privacy}","received_events_url":"https://api.github.com/users/pradt/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T00:36:11Z","updated_at":"2016-09-12T00:36:11Z","body":"AbdallaMohamed  : Thanks that workaround worked for me!!! "}}
{"actor":{"display_login":"pradt"}}