I tried to view the state of the checkbox, calling isChecked() method, and get an error:
Uncaught TypeError: this.refs.enhancedSwitch.isSwitched is not a function
So, I made some changes in the file: /lib/Checkbox.js, on lines:
45: this.refs.enhancedSwitch.setSwitched(newCheckedValue);
to: this.refs.enhancedSwitch.setChecked(newCheckedValue);
50: return this.refs.enhancedSwitch.isSwitched();
to: return this.refs.enhancedSwitch.isChecked();
After Changing this 2 lines, I get these 2 methods working.
I don't know how to send a pull request, because I'm new on github. 😖
I tried to view the state of the checkbox, calling isChecked() method, and get an error:
Uncaught TypeError: this.refs.enhancedSwitch.isSwitched is not a function
So, I made some changes in the file: /lib/Checkbox.js, on lines:
After Changing this 2 lines, I get these 2 methods working.
I don't know how to send a pull request, because I'm new on github. 😖
Hope this will help. 😉
Thanks.