{"action":"created","issue":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/4991","repository_url":"https://api.github.com/repos/mui-org/material-ui","labels_url":"https://api.github.com/repos/mui-org/material-ui/issues/4991/labels{/name}","comments_url":"https://api.github.com/repos/mui-org/material-ui/issues/4991/comments","events_url":"https://api.github.com/repos/mui-org/material-ui/issues/4991/events","html_url":"https://github.com/mui-org/material-ui/issues/4991","id":171138644,"node_id":"MDU6SXNzdWUxNzExMzg2NDQ=","number":4991,"title":"[SelectField] not showing value","user":{"login":"rustanacexd","id":4982729,"node_id":"MDQ6VXNlcjQ5ODI3Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/4982729?v=4","gravatar_id":"","url":"https://api.github.com/users/rustanacexd","html_url":"https://github.com/rustanacexd","followers_url":"https://api.github.com/users/rustanacexd/followers","following_url":"https://api.github.com/users/rustanacexd/following{/other_user}","gists_url":"https://api.github.com/users/rustanacexd/gists{/gist_id}","starred_url":"https://api.github.com/users/rustanacexd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustanacexd/subscriptions","organizations_url":"https://api.github.com/users/rustanacexd/orgs","repos_url":"https://api.github.com/users/rustanacexd/repos","events_url":"https://api.github.com/users/rustanacexd/events{/privacy}","received_events_url":"https://api.github.com/users/rustanacexd/received_events","type":"User","site_admin":false},"labels":[{"id":460200815,"node_id":"MDU6TGFiZWw0NjAyMDA4MTU=","url":"https://api.github.com/repos/mui-org/material-ui/labels/component:%20Select","name":"component: Select","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-15T09:37:53Z","updated_at":"2018-12-09T16:59:02Z","closed_at":"2017-09-08T10:55:50Z","author_association":"NONE","body":"### Problem description\n\nSelectField not showing value\n### Steps to reproduce\n\nI am just using regular selectField\n\n```\n<SelectField\n                onChange={field.input.onChange}\n                value={field.input.value}\n                name={field.input.name}\n            >\n                {field.input.categories.map((category, index) => (\n                    <MenuItem key={index} value={category} primaryText={category}/>\n                ))}\n          </SelectField>\n```\n### Versions\n- Material-UI: 0.15.2\n- React: 15.2.0\n- Browser: Google Chrome Version 52.0.2743.116\n### Description\n### Images & references\n\nhttp://take.ms/Bc6Zm\n\n-->\n"},"comment":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/comments/445553557","html_url":"https://github.com/mui-org/material-ui/issues/4991#issuecomment-445553557","issue_url":"https://api.github.com/repos/mui-org/material-ui/issues/4991","id":445553557,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTU1MzU1Nw==","user":{"login":"timothystewart6","id":1322205,"node_id":"MDQ6VXNlcjEzMjIyMDU=","avatar_url":"https://avatars2.githubusercontent.com/u/1322205?v=4","gravatar_id":"","url":"https://api.github.com/users/timothystewart6","html_url":"https://github.com/timothystewart6","followers_url":"https://api.github.com/users/timothystewart6/followers","following_url":"https://api.github.com/users/timothystewart6/following{/other_user}","gists_url":"https://api.github.com/users/timothystewart6/gists{/gist_id}","starred_url":"https://api.github.com/users/timothystewart6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothystewart6/subscriptions","organizations_url":"https://api.github.com/users/timothystewart6/orgs","repos_url":"https://api.github.com/users/timothystewart6/repos","events_url":"https://api.github.com/users/timothystewart6/events{/privacy}","received_events_url":"https://api.github.com/users/timothystewart6/received_events","type":"User","site_admin":false},"created_at":"2018-12-09T16:59:02Z","updated_at":"2018-12-09T16:59:02Z","author_association":"NONE","body":"This still seems to be an issue.  If someone stumbles upon this like I did, create a class method to render the items then call that method inside of the `<Select>`\r\n\r\n\r\n\r\n```\r\n  renderMenuItems () {\r\n    return this.props.categories.map((cat, i) => (\r\n      <MenuItem key={cat.id} value={cat.value}>{cat.name}</MenuItem>\r\n    ))\r\n  }\r\n```\r\n\r\nthen\r\n\r\n```\r\n  <Select\r\n            value={this.state.category}\r\n            onChange={this.handleChange}\r\n            inputProps={{\r\n              name: 'category',\r\n              id: 'category-name',\r\n            }}\r\n          >\r\n            {this.renderMenuItems()}\r\n          </Select>\r\n```\r\n"}}
{"actor":{"display_login":"timothystewart6"}}