{"action":"created","issue":{"url":"https://api.github.com/repos/benkeen/react-country-region-selector/issues/12","repository_url":"https://api.github.com/repos/benkeen/react-country-region-selector","labels_url":"https://api.github.com/repos/benkeen/react-country-region-selector/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/benkeen/react-country-region-selector/issues/12/comments","events_url":"https://api.github.com/repos/benkeen/react-country-region-selector/issues/12/events","html_url":"https://github.com/benkeen/react-country-region-selector/issues/12","id":219405680,"number":12,"title":"Option not selected when value is present.","user":{"login":"zthornto","id":3597582,"avatar_url":"https://avatars1.githubusercontent.com/u/3597582?v=3","gravatar_id":"","url":"https://api.github.com/users/zthornto","html_url":"https://github.com/zthornto","followers_url":"https://api.github.com/users/zthornto/followers","following_url":"https://api.github.com/users/zthornto/following{/other_user}","gists_url":"https://api.github.com/users/zthornto/gists{/gist_id}","starred_url":"https://api.github.com/users/zthornto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zthornto/subscriptions","organizations_url":"https://api.github.com/users/zthornto/orgs","repos_url":"https://api.github.com/users/zthornto/repos","events_url":"https://api.github.com/users/zthornto/events{/privacy}","received_events_url":"https://api.github.com/users/zthornto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-04T22:35:09Z","updated_at":"2017-04-10T21:26:23Z","closed_at":null,"body":"I have this package (which has been great outside of this one quirk - thank you) implemented, and it's not displaying a selected option when a value is passed into the component.\r\n\r\n```\r\n<CountryDropdown\r\n    valueType=\"short\"\r\n    whitelist={Constants.countriesList}\r\n    value={this.state.country}\r\n    onChange={(val) => this.selectCountry(val)}\r\n/>\r\n```\r\n\r\nIn the above example, I have confirmed that this.state.country is equal to \"US\", and the select has an option with a value of \"US\" after setting valueType=\"short\".\r\n\r\nThe RegionDropdown correctly shows a list of US states, but has the same issue as the CountryDropdown in that it displays the default 'Select Region' value as opposed to showing a selected state option. \r\n\r\nNote (for clarity) that everything works fine when selecting new/different options - I'm only talking about displaying the proper selected option when the page loads, which is a common use-case when editing data."},"comment":{"url":"https://api.github.com/repos/benkeen/react-country-region-selector/issues/comments/293083969","html_url":"https://github.com/benkeen/react-country-region-selector/issues/12#issuecomment-293083969","issue_url":"https://api.github.com/repos/benkeen/react-country-region-selector/issues/12","id":293083969,"user":{"login":"tchaffee","id":148813,"avatar_url":"https://avatars1.githubusercontent.com/u/148813?v=3","gravatar_id":"","url":"https://api.github.com/users/tchaffee","html_url":"https://github.com/tchaffee","followers_url":"https://api.github.com/users/tchaffee/followers","following_url":"https://api.github.com/users/tchaffee/following{/other_user}","gists_url":"https://api.github.com/users/tchaffee/gists{/gist_id}","starred_url":"https://api.github.com/users/tchaffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchaffee/subscriptions","organizations_url":"https://api.github.com/users/tchaffee/orgs","repos_url":"https://api.github.com/users/tchaffee/repos","events_url":"https://api.github.com/users/tchaffee/events{/privacy}","received_events_url":"https://api.github.com/users/tchaffee/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T21:26:23Z","updated_at":"2017-04-10T21:26:23Z","body":"Is anyone already working to fix this? I need it and it looks fairly easy to fix, but I don't want to duplicate effort if someone is already on it."}}
{"actor":{"display_login":"tchaffee"}}