{"action":"created","issue":{"url":"https://api.github.com/repos/toranb/ember-cli-auto-complete/issues/25","labels_url":"https://api.github.com/repos/toranb/ember-cli-auto-complete/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/toranb/ember-cli-auto-complete/issues/25/comments","events_url":"https://api.github.com/repos/toranb/ember-cli-auto-complete/issues/25/events","html_url":"https://github.com/toranb/ember-cli-auto-complete/issues/25","id":101983414,"number":25,"title":"selectedValue shouldn't write back to its input","user":{"login":"jamesarosen","id":2406,"avatar_url":"https://avatars.githubusercontent.com/u/2406?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesarosen","html_url":"https://github.com/jamesarosen","followers_url":"https://api.github.com/users/jamesarosen/followers","following_url":"https://api.github.com/users/jamesarosen/following{/other_user}","gists_url":"https://api.github.com/users/jamesarosen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesarosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesarosen/subscriptions","organizations_url":"https://api.github.com/users/jamesarosen/orgs","repos_url":"https://api.github.com/users/jamesarosen/repos","events_url":"https://api.github.com/users/jamesarosen/events{/privacy}","received_events_url":"https://api.github.com/users/jamesarosen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T19:51:39Z","updated_at":"2015-09-17T04:41:44Z","closed_at":null,"body":"I have something along the lines of\r\n```hbs\r\n{{#my-autocomplete options=users\r\n                   selectedValue=account.owner.name}}\r\n```\r\n\r\nWhenever I type into the autocomplete input, that binding causes `account.owner.name` to be written to. I can work around this with\r\n```hbs\r\n{{#my-autocomplete options=users\r\n                   selectedValue=(readonly account.owner.name)}}\r\n```\r\nor by creating a new property in `MyAutocomplete`:\r\n```js\r\ndidReceiveAttrs({ attrs }) {\r\n  this.set('selectedValue', Ember.get(attrs, 'selectedText.value'));\r\n}\r\n```\r\nBut it would be nice if this library treated that property as input-only and wrote to a private version like `_selectedValue`."},"comment":{"url":"https://api.github.com/repos/toranb/ember-cli-auto-complete/issues/comments/140969008","html_url":"https://github.com/toranb/ember-cli-auto-complete/issues/25#issuecomment-140969008","issue_url":"https://api.github.com/repos/toranb/ember-cli-auto-complete/issues/25","id":140969008,"user":{"login":"toranb","id":147411,"avatar_url":"https://avatars.githubusercontent.com/u/147411?v=3","gravatar_id":"","url":"https://api.github.com/users/toranb","html_url":"https://github.com/toranb","followers_url":"https://api.github.com/users/toranb/followers","following_url":"https://api.github.com/users/toranb/following{/other_user}","gists_url":"https://api.github.com/users/toranb/gists{/gist_id}","starred_url":"https://api.github.com/users/toranb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toranb/subscriptions","organizations_url":"https://api.github.com/users/toranb/orgs","repos_url":"https://api.github.com/users/toranb/repos","events_url":"https://api.github.com/users/toranb/events{/privacy}","received_events_url":"https://api.github.com/users/toranb/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T04:41:44Z","updated_at":"2015-09-17T04:41:44Z","body":"It seems like this _selectedValue has come up a few times (other issues anyway). I like the workaround but agree with you that this should be the default (as the goal of this component is to search/select not update the value)"}}