[explore] checkbox control won't uncheck (#3454)

This commit is contained in:
Maxime Beauchemin 2017-09-12 09:05:07 -07:00 committed by GitHub
parent 1f135e41cd
commit fe77534c03
1 changed files with 2 additions and 2 deletions

View File

@ -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 (