Skip to content

Commit

Permalink
[explore] checkbox control won't uncheck (#3454)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 12, 2017
1 parent 1f135e4 commit fe77534
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -19,8 +19,8 @@ const defaultProps = {
const checkboxStyle = { paddingRight: '5px' };

export default class CheckboxControl extends React.Component {
onChange(checked) {
this.props.onChange(checked);
onChange() {
this.props.onChange(!this.props.value);
}
render() {
return (
Expand Down

0 comments on commit fe77534

Please sign in to comment.