[explore] checkbox control won't uncheck (#3454)
This commit is contained in:
parent
1f135e41cd
commit
fe77534c03
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue