We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6509529 + 81d3a11 commit 5ab7e68Copy full SHA for 5ab7e68
src/js/toggle.jsx
@@ -36,10 +36,14 @@ var Toggle = React.createClass({
36
},
37
38
_onClick: function(e) {
39
+ if (this.refs.radioButton._onClick != null) {
40
+ this.refs.radioButton._onClick = null;
41
+ this.refs.radioButton.setState({ checked: false});
42
+ this.refs.radioButton.refs.radioButton.getDOMNode().checked = false;
43
+ }
44
var toggledState = !this.state.toggled;
45
46
this.setState({ toggled: toggledState });
- this.refs.radioButton.toggle();
47
48
if (this.props.onToggle) this.props.onToggle(e, toggledState);
49
}
0 commit comments