Comparing version 5.0.8 to 5.0.9
@@ -87,2 +87,10 @@ 'use strict'; | ||
(0, _createClass3.default)(Rnd, [{ | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(nextProps) { | ||
if (this.props.z === nextProps.z) return; | ||
this.setState({ | ||
z: nextProps.z | ||
}); | ||
} | ||
}, { | ||
key: 'onDragStart', | ||
@@ -89,0 +97,0 @@ value: function onDragStart(e, data) { |
{ | ||
"name": "react-rnd", | ||
"license": "MIT", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"main": "lib/index.js", | ||
@@ -27,3 +27,3 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^0.19.1", | ||
"ava": "^0.20.0", | ||
"babel-cli": "^6.24.1", | ||
@@ -44,11 +44,11 @@ "babel-core": "^6.24.1", | ||
"enzyme": "^2.8.2", | ||
"eslint": "^3.19.0", | ||
"eslint": "^4.1.0", | ||
"eslint-config-airbnb": "^15.0.0", | ||
"eslint-plugin-flowtype": "^2.30.4", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^5.0.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.0", | ||
"eslint-plugin-react": "^7.0.0", | ||
"flow-bin": "^0.47.0", | ||
"flow-bin": "^0.49.1", | ||
"flow-copy-source": "^1.1.0", | ||
"flow-runtime": "^0.12.0", | ||
"flow-runtime": "^0.13.0", | ||
"http-server": "^0.10.0", | ||
@@ -69,3 +69,3 @@ "karma": "^1.6.0", | ||
"sinon": "^2.1.0", | ||
"webpack": "2.6.1", | ||
"webpack": "^2.6.1", | ||
"webpack-async-await": "^1.1.0", | ||
@@ -72,0 +72,0 @@ "webpack-dev-server": "^2.4.2" |
@@ -354,3 +354,3 @@ # react-rnd | ||
#### `updatePosition({ x: number, x: number })` | ||
#### `updatePosition({ x: number, y: number })` | ||
@@ -419,2 +419,6 @@ Update component size. | ||
#### v5.0.9 | ||
- Fix bug new `z` props is not applied to state. | ||
#### v5.0.8 | ||
@@ -421,0 +425,0 @@ |
Sorry, the diff of this file is not supported yet
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
95857
1060
544