{"action":"opened","issue":{"url":"https://api.github.com/repos/ericgio/react-bootstrap-typeahead/issues/349","repository_url":"https://api.github.com/repos/ericgio/react-bootstrap-typeahead","labels_url":"https://api.github.com/repos/ericgio/react-bootstrap-typeahead/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/ericgio/react-bootstrap-typeahead/issues/349/comments","events_url":"https://api.github.com/repos/ericgio/react-bootstrap-typeahead/issues/349/events","html_url":"https://github.com/ericgio/react-bootstrap-typeahead/issues/349","id":327748225,"number":349,"title":"Handle null value of labelKey","user":{"login":"shubhamkes","id":13855861,"avatar_url":"https://avatars3.githubusercontent.com/u/13855861?v=4","gravatar_id":"","url":"https://api.github.com/users/shubhamkes","html_url":"https://github.com/shubhamkes","followers_url":"https://api.github.com/users/shubhamkes/followers","following_url":"https://api.github.com/users/shubhamkes/following{/other_user}","gists_url":"https://api.github.com/users/shubhamkes/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhamkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhamkes/subscriptions","organizations_url":"https://api.github.com/users/shubhamkes/orgs","repos_url":"https://api.github.com/users/shubhamkes/repos","events_url":"https://api.github.com/users/shubhamkes/events{/privacy}","received_events_url":"https://api.github.com/users/shubhamkes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T14:08:29Z","updated_at":"2018-05-30T14:08:29Z","closed_at":null,"author_association":"NONE","body":"My options array has an object where labelKey is null and is not handled. \r\n\r\nCode sample -\r\n\r\n```\r\n<Typeahead\r\n       selected={value ? [value] : []}\r\n       emptyLabel={searchLabel ? searchLabel : ''}\r\n       labelKey={display_name}\r\n       options={[{display_name: 'Test'}, {display_name: null}]}\r\n/>\r\n```\r\n\r\n**Error -** browser.js:38 Uncaught Error: One or more options does not have a valid label string. Check the `labelKey` prop to ensure that it matches the correct option key and provides a string for filtering and display.\r\n\r\n\r\n<!--\r\nThanks for using react-bootstrap-typeahead and for your interest in contributing!\r\n\r\nDo not simply delete this template or your issue will be closed. Issues without required information will be closed.\r\n\r\nUsage questions\r\n======================\r\nUnless you believe you've encountered a bug, the issue tracker isn't the right place for getting help with your code. This format is not well-suited for Q&A, and questions here don't have as much visibility as they do elsewhere. Before you ask a question, here are some resources to get help first:\r\n\r\n- Read the docs: https://github.com/ericgio/react-bootstrap-typeahead/tree/master/docs\r\n- Try the examples: http://ericgio.github.io/react-bootstrap-typeahead/\r\n- Look for/ask questions on StackOverflow: https://stackoverflow.com/questions/ask?tags=react-bootstrap-typeahead\r\n\r\nFeature requests\r\n=======================\r\nRemove the bug template below and provide thoughtful commentary *and code samples* on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc.\r\n\r\nBug reports\r\n======================\r\nFor bug reports, please fill out the template below. Better yet, submit a pull request that introduces a failing test due to the bug :)\r\n\r\n-->\r\n\r\n<!-- BUG TEMPLATE -->\r\n\r\n### Version \r\n ^3.1.3\"\r\n\r\n<!-- Be sure to double-check your installed version, as it may differ from the version listed in your package.json -->\r\n\r\n### Steps to reproduce  \r\nOn clearing search field \r\n\r\n<!-- Please provide DETAILED steps or better yet, a minimal repro case. If I can't reproduce the problem based on the information you provide, your issue will be closed. -->\r\n\r\n### Expected Behavior \r\n\r\nShould have open the list\r\n\r\n<!-- Describe what you would have expected. -->\r\n\r\n### Actual Behavior\r\n\r\nThrows error and screen goes blank\r\n\r\n<!-- Describe what went wrong. -->\r\n"}}
{"actor":{"display_login":"shubhamkes"}}