{"action":"created","issue":{"url":"https://api.github.com/repos/iStefo/ember-select-2/issues/60","labels_url":"https://api.github.com/repos/iStefo/ember-select-2/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/iStefo/ember-select-2/issues/60/comments","events_url":"https://api.github.com/repos/iStefo/ember-select-2/issues/60/events","html_url":"https://github.com/iStefo/ember-select-2/issues/60","id":56733562,"number":60,"title":"content field update for remote server data","user":{"login":"chooli","id":3616456,"avatar_url":"https://avatars.githubusercontent.com/u/3616456?v=3","gravatar_id":"","url":"https://api.github.com/users/chooli","html_url":"https://github.com/chooli","followers_url":"https://api.github.com/users/chooli/followers","following_url":"https://api.github.com/users/chooli/following{/other_user}","gists_url":"https://api.github.com/users/chooli/gists{/gist_id}","starred_url":"https://api.github.com/users/chooli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chooli/subscriptions","organizations_url":"https://api.github.com/users/chooli/orgs","repos_url":"https://api.github.com/users/chooli/repos","events_url":"https://api.github.com/users/chooli/events{/privacy}","received_events_url":"https://api.github.com/users/chooli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-05T21:38:03Z","updated_at":"2015-03-18T16:24:01Z","closed_at":null,"body":"I found the value binding doesn't update when used \"typeahead\" mode. I implemented \"queryOptions\" in the controller and retrieve server data. Then transformed the data into key-value array. This worked fine till I choose one option and it got an error. \r\n\r\nI debugged it and found the content field in this plugin was empty since I didn't assign it. I now just fix it by setting it in the following codes\r\n\r\n                    ... ...\r\n                   deferred.promise.then(function(data) {\r\n                    if (data instanceof Ember.ArrayProxy) {\r\n                        data = data.toArray();\r\n                    }\r\n                    \r\n                   //fix for server return updates array\r\n                    self.set('content', data);\r\n\r\n                    query.callback({\r\n                        results: data\r\n                    });\r\n                   ... ...\r\n\r\nNot sure if it is the right way or do I need to implement my own initSelection method. How to initiate the first time render select2 component? "},"comment":{"url":"https://api.github.com/repos/iStefo/ember-select-2/issues/comments/83043969","html_url":"https://github.com/iStefo/ember-select-2/issues/60#issuecomment-83043969","issue_url":"https://api.github.com/repos/iStefo/ember-select-2/issues/60","id":83043969,"user":{"login":"chvonrohr","id":1733057,"avatar_url":"https://avatars.githubusercontent.com/u/1733057?v=3","gravatar_id":"","url":"https://api.github.com/users/chvonrohr","html_url":"https://github.com/chvonrohr","followers_url":"https://api.github.com/users/chvonrohr/followers","following_url":"https://api.github.com/users/chvonrohr/following{/other_user}","gists_url":"https://api.github.com/users/chvonrohr/gists{/gist_id}","starred_url":"https://api.github.com/users/chvonrohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chvonrohr/subscriptions","organizations_url":"https://api.github.com/users/chvonrohr/orgs","repos_url":"https://api.github.com/users/chvonrohr/repos","events_url":"https://api.github.com/users/chvonrohr/events{/privacy}","received_events_url":"https://api.github.com/users/chvonrohr/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T16:24:01Z","updated_at":"2015-03-18T16:24:01Z","body":"Had the same problem and your fix did it. Thanks a lot!\r\nBy now I had no drawbacks and I think this should be merged (?)."}}