bee-checkbox
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -142,2 +142,3 @@ 'use strict'; | ||
var props = _this2.props; | ||
var checked = _this2.state.checked; | ||
@@ -156,3 +157,3 @@ clearTimeout(_this2.doubleClickFlag); | ||
_this2.setState({ | ||
checked: !_this2.state.checked | ||
checked: !checked | ||
}); | ||
@@ -162,3 +163,3 @@ } | ||
if (props.onChange instanceof Function) { | ||
props.onChange(!_this2.state.checked); | ||
props.onChange(!checked); | ||
} | ||
@@ -165,0 +166,0 @@ }, 300); |
@@ -0,1 +1,11 @@ | ||
<a name="1.0.9"></a> | ||
## [1.0.9](https://github.com/tinper-bee/checkbox/compare/v1.0.8...v1.0.9) (2018-05-10) | ||
### Bug Fixes | ||
* bee-checkbox ([e776b8a](https://github.com/tinper-bee/checkbox/commit/e776b8a)) | ||
<a name="1.0.8"></a> | ||
@@ -17,11 +27,6 @@ ## [1.0.8](https://github.com/tinper-bee/checkbox/compare/v1.0.7...v1.0.8) (2018-04-11) | ||
<a name="1.0.5"></a> | ||
## [1.0.5](https://github.com/tinper-bee/checkbox/compare/1.0.4...v1.0.5) (2018-01-21) | ||
## [1.0.5](https://github.com/tinper-bee/checkbox/compare/v1.0.3...v1.0.5) (2018-01-21) | ||
<a name="1.0.4"></a> | ||
## [1.0.4](https://github.com/tinper-bee/checkbox/compare/v1.0.3...1.0.4) (2018-01-20) | ||
<a name="1.0.3"></a> | ||
@@ -28,0 +33,0 @@ ## [1.0.3](https://github.com/tinper-bee/checkbox/compare/4af7c2e...v1.0.3) (2018-01-16) |
{ | ||
"name": "bee-checkbox", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "checkbox ui component for react", | ||
@@ -23,3 +23,6 @@ "keywords": [ | ||
"config": { | ||
"port": 8000 | ||
"port": 8000, | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
@@ -46,13 +49,14 @@ "scripts": { | ||
"devDependencies": { | ||
"bee-button": "latest", | ||
"bee-layout": "latest", | ||
"bee-panel": "latest", | ||
"chai": "^3.5.0", | ||
"console-polyfill": "~0.2.1", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"enzyme": "^2.4.1", | ||
"react-addons-test-utils": "15.3.2", | ||
"console-polyfill": "~0.2.1", | ||
"es5-shim": "~4.1.10", | ||
"bee-button": "latest", | ||
"bee-panel": "latest", | ||
"bee-layout": "latest", | ||
"react": "~15.3.0 ", | ||
"react-addons-test-utils": "15.3.2", | ||
"react-dom": "~15.3.0" | ||
} | ||
} |
@@ -43,2 +43,3 @@ import classnames from 'classnames'; | ||
const { props } = this; | ||
const { checked } = this.state; | ||
clearTimeout(this.doubleClickFlag); | ||
@@ -56,3 +57,3 @@ if(props.onClick instanceof Function){ | ||
this.setState({ | ||
checked: !this.state.checked, | ||
checked: !checked, | ||
}); | ||
@@ -62,3 +63,3 @@ } | ||
if (props.onChange instanceof Function) { | ||
props.onChange(!this.state.checked); | ||
props.onChange(!checked); | ||
} | ||
@@ -65,0 +66,0 @@ },300); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1107229
11
11767