{"action":"closed","issue":{"url":"https://api.github.com/repos/luqin/react-icheck/issues/23","repository_url":"https://api.github.com/repos/luqin/react-icheck","labels_url":"https://api.github.com/repos/luqin/react-icheck/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/luqin/react-icheck/issues/23/comments","events_url":"https://api.github.com/repos/luqin/react-icheck/issues/23/events","html_url":"https://github.com/luqin/react-icheck/issues/23","id":155385780,"number":23,"title":"Checkbox.isChecked() not working:  Uncaught TypeError: this.refs.enhancedSwitch.isSwitched is not a function","user":{"login":"risleylima","id":19418587,"avatar_url":"https://avatars.githubusercontent.com/u/19418587?v=3","gravatar_id":"","url":"https://api.github.com/users/risleylima","html_url":"https://github.com/risleylima","followers_url":"https://api.github.com/users/risleylima/followers","following_url":"https://api.github.com/users/risleylima/following{/other_user}","gists_url":"https://api.github.com/users/risleylima/gists{/gist_id}","starred_url":"https://api.github.com/users/risleylima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/risleylima/subscriptions","organizations_url":"https://api.github.com/users/risleylima/orgs","repos_url":"https://api.github.com/users/risleylima/repos","events_url":"https://api.github.com/users/risleylima/events{/privacy}","received_events_url":"https://api.github.com/users/risleylima/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T23:29:42Z","updated_at":"2016-06-12T02:11:26Z","closed_at":"2016-06-12T02:11:26Z","body":"I tried to view the state of the checkbox, calling isChecked() method, and get an error:\r\n\r\n   Uncaught TypeError: this.refs.enhancedSwitch.isSwitched is not a function\r\n\r\nSo, I made some changes in the file: /lib/Checkbox.js, on lines:\r\n\r\n    45: this.refs.enhancedSwitch.setSwitched(newCheckedValue);\r\n     to: this.refs.enhancedSwitch.setChecked(newCheckedValue);\r\n    50: return this.refs.enhancedSwitch.isSwitched();\r\n     to: return this.refs.enhancedSwitch.isChecked(); \r\n\r\nAfter Changing this 2 lines, I get these 2 methods working.\r\n\r\nI don't know how to send a pull request, because I'm new on github. &#x1F616;\r\n\r\nHope this will help. \t&#x1F609;\r\n\r\nThanks."}}
{"actor":{"display_login":"luqin"}}