{"action":"created","issue":{"url":"https://api.github.com/repos/kaivi/riek/issues/10","repository_url":"https://api.github.com/repos/kaivi/riek","labels_url":"https://api.github.com/repos/kaivi/riek/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/kaivi/riek/issues/10/comments","events_url":"https://api.github.com/repos/kaivi/riek/issues/10/events","html_url":"https://github.com/kaivi/riek/pull/10","id":172846850,"number":10,"title":"add RIESelect component","user":{"login":"babenzele","id":3578574,"avatar_url":"https://avatars.githubusercontent.com/u/3578574?v=3","gravatar_id":"","url":"https://api.github.com/users/babenzele","html_url":"https://github.com/babenzele","followers_url":"https://api.github.com/users/babenzele/followers","following_url":"https://api.github.com/users/babenzele/following{/other_user}","gists_url":"https://api.github.com/users/babenzele/gists{/gist_id}","starred_url":"https://api.github.com/users/babenzele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babenzele/subscriptions","organizations_url":"https://api.github.com/users/babenzele/orgs","repos_url":"https://api.github.com/users/babenzele/repos","events_url":"https://api.github.com/users/babenzele/events{/privacy}","received_events_url":"https://api.github.com/users/babenzele/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-24T01:48:19Z","updated_at":"2016-09-26T00:23:29Z","closed_at":"2016-09-26T00:17:51Z","pull_request":{"url":"https://api.github.com/repos/kaivi/riek/pulls/10","html_url":"https://github.com/kaivi/riek/pull/10","diff_url":"https://github.com/kaivi/riek/pull/10.diff","patch_url":"https://github.com/kaivi/riek/pull/10.patch"},"body":"I needed a select component in a project I'm working on and figured I'd do a solid and add it to this repo, I really like what you've build here.\r\n\r\nLet me know if there's anything I could change in this commit. I chose to pass the select options as an object, but it could just as easily be passed as a list of objects like so:\r\n```javascript\r\n[\r\n  { value: \"1\", text: \"one\" },\r\n  { value: \"2\", text: \"two\" },\r\n  { value: \"3\", text: \"three\" },\r\n  { value: \"4\", text: \"four\" }\r\n]\r\n```\r\n- could be clearer\r\n- more typing\r\n- can use `map` instead of `for` loop\r\n\r\nI had to put a conditional in `RIEBase.js` since `<select>` elements don't have the function `setSelectionRange`. "},"comment":{"url":"https://api.github.com/repos/kaivi/riek/issues/comments/249456427","html_url":"https://github.com/kaivi/riek/pull/10#issuecomment-249456427","issue_url":"https://api.github.com/repos/kaivi/riek/issues/10","id":249456427,"user":{"login":"kaivi","id":3091192,"avatar_url":"https://avatars.githubusercontent.com/u/3091192?v=3","gravatar_id":"","url":"https://api.github.com/users/kaivi","html_url":"https://github.com/kaivi","followers_url":"https://api.github.com/users/kaivi/followers","following_url":"https://api.github.com/users/kaivi/following{/other_user}","gists_url":"https://api.github.com/users/kaivi/gists{/gist_id}","starred_url":"https://api.github.com/users/kaivi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaivi/subscriptions","organizations_url":"https://api.github.com/users/kaivi/orgs","repos_url":"https://api.github.com/users/kaivi/repos","events_url":"https://api.github.com/users/kaivi/events{/privacy}","received_events_url":"https://api.github.com/users/kaivi/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T00:23:29Z","updated_at":"2016-09-26T00:23:29Z","body":"Hey, sorry it took so long, It is merged and published as v 1.0.5 now!"}}
{"actor":{"display_login":"kaivi"}}