Comparing version 1.3.2 to 1.3.3
@@ -54,5 +54,7 @@ 'use strict'; | ||
var checked = !this.state.checked; | ||
this.setState({ | ||
checked: checked | ||
}); | ||
if (!('checked' in this.props)) { | ||
this.setState({ | ||
checked: checked | ||
}); | ||
} | ||
this.props.onChange(checked); | ||
@@ -59,0 +61,0 @@ }, |
{ | ||
"name": "rc-switch", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "switch ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9830
216