{"action":"created","issue":{"url":"https://api.github.com/repos/thefrontside/emberx-select/issues/81","labels_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/81/comments","events_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/81/events","html_url":"https://github.com/thefrontside/emberx-select/issues/81","id":117697694,"number":81,"title":"Default value not applied","user":{"login":"matthewnessworthy","id":5653887,"avatar_url":"https://avatars.githubusercontent.com/u/5653887?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewnessworthy","html_url":"https://github.com/matthewnessworthy","followers_url":"https://api.github.com/users/matthewnessworthy/followers","following_url":"https://api.github.com/users/matthewnessworthy/following{/other_user}","gists_url":"https://api.github.com/users/matthewnessworthy/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewnessworthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewnessworthy/subscriptions","organizations_url":"https://api.github.com/users/matthewnessworthy/orgs","repos_url":"https://api.github.com/users/matthewnessworthy/repos","events_url":"https://api.github.com/users/matthewnessworthy/events{/privacy}","received_events_url":"https://api.github.com/users/matthewnessworthy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thefrontside/emberx-select/labels/Investigate","name":"Investigate","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-18T22:33:43Z","updated_at":"2015-12-17T03:15:46Z","closed_at":null,"body":"Using the simple example with property binding, a normal select would have the first value selected without user interaction. With emberx-select, unless you manually select an option the value `model.status` will be empty/undefined/etc by default.\r\nCan/should this be fixed, or is there a workaround?\r\n\r\n```\r\n{{#x-select value=model.status }}\r\n  {{#x-option value=1}}Active{{/x-option}}\r\n  {{#x-option value=2}}Inactive{{/x-option}}\r\n{{/x-select}}\r\n```"},"comment":{"url":"https://api.github.com/repos/thefrontside/emberx-select/issues/comments/165325759","html_url":"https://github.com/thefrontside/emberx-select/issues/81#issuecomment-165325759","issue_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/81","id":165325759,"user":{"login":"sa4breeze","id":5461012,"avatar_url":"https://avatars.githubusercontent.com/u/5461012?v=3","gravatar_id":"","url":"https://api.github.com/users/sa4breeze","html_url":"https://github.com/sa4breeze","followers_url":"https://api.github.com/users/sa4breeze/followers","following_url":"https://api.github.com/users/sa4breeze/following{/other_user}","gists_url":"https://api.github.com/users/sa4breeze/gists{/gist_id}","starred_url":"https://api.github.com/users/sa4breeze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa4breeze/subscriptions","organizations_url":"https://api.github.com/users/sa4breeze/orgs","repos_url":"https://api.github.com/users/sa4breeze/repos","events_url":"https://api.github.com/users/sa4breeze/events{/privacy}","received_events_url":"https://api.github.com/users/sa4breeze/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T03:15:46Z","updated_at":"2015-12-17T03:15:46Z","body":"The default selected attribute in x-option also has an issue.\r\n\r\nSnippet 1:\r\n```\r\n{{#x-select class=\"form-control\" value=SomePerson}}\r\n    {{#x-option value=0 selected}}Alice{{/x-option}}\r\n    {{#x-option value=1}}Bob{{/x-option}}\r\n{{/x-select}}\r\n```\r\n\r\nshould work similarly to the one shown below:\r\n\r\nSnippet 2:\r\n```\r\n<select id=SomePerson>\r\n    <option value=0 selected>Alice<option>\r\n    <option value=1>Bob<option>\r\n</select>\r\n```\r\n\r\nIn snippet 1, using x-select to pass the value for SomePerson results in undefined. That shouldn't be the case.\r\n\r\nIt should pass the value as 0 which is set to selected as shown in Snippet 2."}}