From fe77534c03c12ea59baa9bad9391fcd692540806 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 12 Sep 2017 09:05:07 -0700 Subject: [PATCH] [explore] checkbox control won't uncheck (#3454) --- .../explore/components/controls/CheckboxControl.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx b/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx index 7d78646e79f20..a4138e483e6a8 100644 --- a/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx +++ b/superset/assets/javascripts/explore/components/controls/CheckboxControl.jsx @@ -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 (