{"action":"closed","issue":{"url":"https://api.github.com/repos/ekeric13/react-star-ratings/issues/6","repository_url":"https://api.github.com/repos/ekeric13/react-star-ratings","labels_url":"https://api.github.com/repos/ekeric13/react-star-ratings/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ekeric13/react-star-ratings/issues/6/comments","events_url":"https://api.github.com/repos/ekeric13/react-star-ratings/issues/6/events","html_url":"https://github.com/ekeric13/react-star-ratings/issues/6","id":303523801,"number":6,"title":"changeRating not working","user":{"login":"borisyordanov","id":12392666,"avatar_url":"https://avatars0.githubusercontent.com/u/12392666?v=4","gravatar_id":"","url":"https://api.github.com/users/borisyordanov","html_url":"https://github.com/borisyordanov","followers_url":"https://api.github.com/users/borisyordanov/followers","following_url":"https://api.github.com/users/borisyordanov/following{/other_user}","gists_url":"https://api.github.com/users/borisyordanov/gists{/gist_id}","starred_url":"https://api.github.com/users/borisyordanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisyordanov/subscriptions","organizations_url":"https://api.github.com/users/borisyordanov/orgs","repos_url":"https://api.github.com/users/borisyordanov/repos","events_url":"https://api.github.com/users/borisyordanov/events{/privacy}","received_events_url":"https://api.github.com/users/borisyordanov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-08T15:36:56Z","updated_at":"2018-03-08T17:47:21Z","closed_at":"2018-03-08T17:47:21Z","author_association":"NONE","body":"I pretty much took the example provided in the package and put it in one of my components. The `changeRating` prop is not executed when i click on any of the stars.\r\n\r\nI'm using React 16.2 and react-star-ratings 2.2.0\r\n\r\nHere is my changeRating method:\r\n```\r\nchangeRating(newRating) {\r\n    this.setState({\r\n        rating: newRating\r\n    });\r\n}\r\n```\r\n\r\nAnd here is how i render the component:\r\n```\r\n<StarRatings\r\n    rating={this.state.rating}\r\n    starRatedColor=\"blue\"\r\n    changeRating={this.changeRating}\r\n    numberOfStars={6}\r\n/>\r\n```\r\n\r\nIf i edit the state myself the stars get updated and otherwise the component works as expected. The issue is that `this.changeRating` never gets called.\r\n\r\nHelp!"}}
{"actor":{"display_login":"borisyordanov"}}