{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292","repository_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge","labels_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292/comments","events_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292/events","html_url":"https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292","id":180872516,"number":292,"title":"md-select: initial selected value is not selected","user":{"login":"tdamir","id":2204114,"avatar_url":"https://avatars.githubusercontent.com/u/2204114?v=3","gravatar_id":"","url":"https://api.github.com/users/tdamir","html_url":"https://github.com/tdamir","followers_url":"https://api.github.com/users/tdamir/followers","following_url":"https://api.github.com/users/tdamir/following{/other_user}","gists_url":"https://api.github.com/users/tdamir/gists{/gist_id}","starred_url":"https://api.github.com/users/tdamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdamir/subscriptions","organizations_url":"https://api.github.com/users/tdamir/orgs","repos_url":"https://api.github.com/users/tdamir/repos","events_url":"https://api.github.com/users/tdamir/events{/privacy}","received_events_url":"https://api.github.com/users/tdamir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-04T11:53:51Z","updated_at":"2016-10-04T15:32:54Z","closed_at":null,"body":"This works well on Chrome but on FF, Edge and IE11 the selected option is not selected. If I display the hidden select element, the option is selected.\r\n```\r\n<select md-select=\"label: Label\" value.two-way=\"model.value\">\r\n    <option repeat.for=\"item of model.items\" model.bind=\"item.id\">${item.name}</option>\r\n</select>\r\n```\r\nIf I bind to selected attribute then the selected option will be selected on the first render on all browsers:\r\n```\r\n<select md-select=\"label: Label\" value.two-way=\"model.selectedValue\">\r\n    <option repeat.for=\"item of model.items\" model.bind=\"item.id\" selected.bind=\"item.id == model.selectedValue\">${item.name}</option>\r\n</select>\r\n```"},"comment":{"url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/comments/251424024","html_url":"https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292#issuecomment-251424024","issue_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/292","id":251424024,"user":{"login":"tdamir","id":2204114,"avatar_url":"https://avatars.githubusercontent.com/u/2204114?v=3","gravatar_id":"","url":"https://api.github.com/users/tdamir","html_url":"https://github.com/tdamir","followers_url":"https://api.github.com/users/tdamir/followers","following_url":"https://api.github.com/users/tdamir/following{/other_user}","gists_url":"https://api.github.com/users/tdamir/gists{/gist_id}","starred_url":"https://api.github.com/users/tdamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdamir/subscriptions","organizations_url":"https://api.github.com/users/tdamir/orgs","repos_url":"https://api.github.com/users/tdamir/repos","events_url":"https://api.github.com/users/tdamir/events{/privacy}","received_events_url":"https://api.github.com/users/tdamir/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T15:32:53Z","updated_at":"2016-10-04T15:32:53Z","body":"I tried the food sample and option in the native element is selected (if initially set) but wrapper is not showing it on IE11 and Edge. As for the FF we figured out that it didn't worked because id was a number and selectedValue was a string (in our project) and in that case aurelia cannot match the element (probably they are using === for equality). So it looks like there are only issues with IE and Edge,"}}
{"actor":{"display_login":"tdamir"}}