{"action":"created","issue":{"url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield/issues/9","repository_url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield","labels_url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield/issues/9/comments","events_url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield/issues/9/events","html_url":"https://github.com/Sharlaan/material-ui-superselectfield/issues/9","id":209036606,"number":9,"title":"selectionsRenderer doesn't have label","user":{"login":"patrickml","id":7581369,"avatar_url":"https://avatars.githubusercontent.com/u/7581369?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickml","html_url":"https://github.com/patrickml","followers_url":"https://api.github.com/users/patrickml/followers","following_url":"https://api.github.com/users/patrickml/following{/other_user}","gists_url":"https://api.github.com/users/patrickml/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickml/subscriptions","organizations_url":"https://api.github.com/users/patrickml/orgs","repos_url":"https://api.github.com/users/patrickml/repos","events_url":"https://api.github.com/users/patrickml/events{/privacy}","received_events_url":"https://api.github.com/users/patrickml/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-02-21T04:00:01Z","updated_at":"2017-02-25T03:20:16Z","closed_at":null,"body":"Label is missing from the `selectionsRenderer` function\r\n\r\nwe have \r\n```js\r\noptions={\r\n   segments.map((p) => (\r\n      <div value={p.id} key={p.id} label={p.name}>\r\n        {p.name}\r\n      </div>\r\n    ))\r\n}\r\n```\r\n\r\nAnd the label works for the autocomplete perfectly but when the values are rendered it is showing `value` not `label`\r\n\r\nI tried adding this function\r\n\r\n```js\r\nconst renderSelected = (values, hintText) => {\r\n  console.log(values, hintText);\r\n  if (!values || !values.length) return hintText;\r\n  const { value, label } = values;\r\n  if (Array.isArray(values)) return values.map((v) => v.label || v.value).join(', ');\r\n  else if (label || value) return label || value;\r\n  return hintText;\r\n};\r\n```\r\n\r\nbut when i console.log(values) there is no `label` key"},"comment":{"url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield/issues/comments/282456026","html_url":"https://github.com/Sharlaan/material-ui-superselectfield/issues/9#issuecomment-282456026","issue_url":"https://api.github.com/repos/Sharlaan/material-ui-superselectfield/issues/9","id":282456026,"user":{"login":"patrickml","id":7581369,"avatar_url":"https://avatars.githubusercontent.com/u/7581369?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickml","html_url":"https://github.com/patrickml","followers_url":"https://api.github.com/users/patrickml/followers","following_url":"https://api.github.com/users/patrickml/following{/other_user}","gists_url":"https://api.github.com/users/patrickml/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickml/subscriptions","organizations_url":"https://api.github.com/users/patrickml/orgs","repos_url":"https://api.github.com/users/patrickml/repos","events_url":"https://api.github.com/users/patrickml/events{/privacy}","received_events_url":"https://api.github.com/users/patrickml/received_events","type":"User","site_admin":false},"created_at":"2017-02-25T03:20:16Z","updated_at":"2017-02-25T03:20:16Z","body":"@Sharlaan were you able to figure anything out?"}}
{"actor":{"display_login":"patrickml"}}