{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/material/issues/3846","labels_url":"https://api.github.com/repos/angular/material/issues/3846/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/3846/comments","events_url":"https://api.github.com/repos/angular/material/issues/3846/events","html_url":"https://github.com/angular/material/issues/3846","id":96377934,"number":3846,"title":"mdAutocomplete Cannot read property 'indexOf' of undefined","user":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-21T17:58:51Z","updated_at":"2015-07-21T17:58:51Z","closed_at":null,"body":"When I try to add a chip, I get this error:\r\n```\r\nTypeError: Cannot read property 'indexOf' of undefined\r\nat MdChipsCtrl.appendChip (angular-material.js:14790)\r\n    at MdChipsCtrl.<anonymous> (angular-material.js:14955)\r\n    at Array.c (angular.js:1157)\r\n    at Object.handleSelectedItemChange [as fn] (angular-material.js:13731)\r\n    at m.$get.m.$digest (angular.js:15667)\r\n    at m.$get.m.$apply (angular.js:15935)\r\n    at angular.js:17691\r\n    at e (angular.js:5387)\r\n    at angular.js:5659(anonymous function) @ angular.js:12314$get @ angular.js:9101$get.m.$digest @ angular.js:15685$get.m.$apply @ angular.js:15935(anonymous function) @ angular.js:17691e @ angular.js:5387(anonymous function) @ angular.js:5659\r\n```\r\n\r\nWhen I inspect `this.items` on that line, I get undefined. When I do `this.$element`, I see it's referring to the `md-chips`. I'm using this HTML:\r\n```\r\n<md-chips ng-model=\"projectDetails.countries\" md-autocomplete-snap md-require-match>\r\n  <md-autocomplete md-selected-item=\"selectedItem\"\r\n                                 md-search-text=\"searchText\"\r\n                                 md-items=\"country in countries | filter: searchText\"\r\n                                 md-item-text=\"country\"\r\n                                 placeholder=\"United States of America\">\r\n    <span md-highlight-text=\"searchText\">{{country}}</span>\r\n  </md-autocomplete>\r\n</md-chips>\r\n```"}}