Skip to content

Commit d9640f1

Browse files
author
Jerson Otzoy
committed
update Radio Button behavior in Paper Toggle
This is for issue #73 the problem was that the onClick event of the radio button associated to the toggle was triggered too, I removed the onClick from the radio button associated to the toggle
1 parent 89e690d commit d9640f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/toggle.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ var Toggle = React.createClass({
3636
},
3737

3838
_onClick: function(e) {
39+
if (this.refs.radioButton._onClick != null) this.refs.radioButton._onClick = null;
3940
var toggledState = !this.state.toggled;
4041

4142
this.setState({ toggled: toggledState });
42-
this.refs.radioButton.toggle();
4343

4444
if (this.props.onToggle) this.props.onToggle(e, toggledState);
4545
}

0 commit comments

Comments
 (0)