{"action":"created","issue":{"url":"https://api.github.com/repos/mikeric/rivets/issues/75","labels_url":"https://api.github.com/repos/mikeric/rivets/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/mikeric/rivets/issues/75/comments","events_url":"https://api.github.com/repos/mikeric/rivets/issues/75/events","html_url":"https://github.com/mikeric/rivets/issues/75","id":7491730,"number":75,"title":"Improve data-value bindings on dynamic select elements","user":{"login":"mcolyer","id":1424,"avatar_url":"https://avatars.githubusercontent.com/u/1424?v=3","gravatar_id":"","url":"https://api.github.com/users/mcolyer","html_url":"https://github.com/mcolyer","followers_url":"https://api.github.com/users/mcolyer/followers","following_url":"https://api.github.com/users/mcolyer/following{/other_user}","gists_url":"https://api.github.com/users/mcolyer/gists{/gist_id}","starred_url":"https://api.github.com/users/mcolyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcolyer/subscriptions","organizations_url":"https://api.github.com/users/mcolyer/orgs","repos_url":"https://api.github.com/users/mcolyer/repos","events_url":"https://api.github.com/users/mcolyer/events{/privacy}","received_events_url":"https://api.github.com/users/mcolyer/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2012-10-10T18:41:42Z","updated_at":"2015-01-29T21:38:09Z","closed_at":"2013-10-24T04:50:00Z","body":"This isn't really a bug but more a feature request\r\n\r\nExample:\r\n```\r\n<select data-value=\"model.item\" >\r\n  <option data-each-item=\"model.items\" data-text=\"item.name\" data-value=\"item.name\"></option>\r\n</select>\r\n```\r\n\r\nIf you bind a model to this it won't select the proper item in the select because it will attempt to set the value before the options exist. Right now I'm working around it by manually forcing the data-value binding to run again.\r\n\r\nAny ideas of how to make it better?"},"comment":{"url":"https://api.github.com/repos/mikeric/rivets/issues/comments/72109274","html_url":"https://github.com/mikeric/rivets/issues/75#issuecomment-72109274","issue_url":"https://api.github.com/repos/mikeric/rivets/issues/75","id":72109274,"user":{"login":"eimajenthat","id":1080691,"avatar_url":"https://avatars.githubusercontent.com/u/1080691?v=3","gravatar_id":"","url":"https://api.github.com/users/eimajenthat","html_url":"https://github.com/eimajenthat","followers_url":"https://api.github.com/users/eimajenthat/followers","following_url":"https://api.github.com/users/eimajenthat/following{/other_user}","gists_url":"https://api.github.com/users/eimajenthat/gists{/gist_id}","starred_url":"https://api.github.com/users/eimajenthat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eimajenthat/subscriptions","organizations_url":"https://api.github.com/users/eimajenthat/orgs","repos_url":"https://api.github.com/users/eimajenthat/repos","events_url":"https://api.github.com/users/eimajenthat/events{/privacy}","received_events_url":"https://api.github.com/users/eimajenthat/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T21:38:09Z","updated_at":"2015-01-29T21:38:09Z","body":"@andriijas and @smasala I think I figured out how to do it: http://jsfiddle.net/eimajenthat/94ca1xht/2/\r\n\r\nDon't pay too much attention to the Chosen part, unless you're using Chosen too.\r\n\r\nThis seems to work for me.  But if anyone would like to comment about how I'm doing everything wrong, and there is an infinitely superior way to accomplish this, be my guest."}}