Comparing version 5.0.5 to 5.0.6
@@ -152,3 +152,5 @@ 'use strict'; | ||
var _max = target.offsetWidth + (targetLeft - selfLeft); | ||
this.setState({ maxWidth: _max > this.props.maxWidth ? this.props.maxWidth : _max }); | ||
this.setState({ | ||
maxWidth: _max > (this.props.maxWidth || Infinity) ? this.props.maxWidth : _max | ||
}); | ||
} | ||
@@ -161,3 +163,5 @@ if (/top/i.test(dir)) { | ||
var _max3 = target.offsetHeight + (targetTop - selfTop); | ||
this.setState({ maxHeight: _max3 > this.props.maxHeight ? this.props.maxHeight : _max3 }); | ||
this.setState({ | ||
maxHeight: _max3 > (this.props.maxHeight || Infinity) ? this.props.maxHeight : _max3 | ||
}); | ||
} | ||
@@ -164,0 +168,0 @@ } |
{ | ||
"name": "react-rnd", | ||
"license": "MIT", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"main": "lib/index.js", | ||
@@ -13,3 +13,3 @@ "scripts": { | ||
"lint": "eslint src", | ||
"test": "NODE_ENV=test karma start", | ||
"test": "npm run flow && NODE_ENV=test karma start", | ||
"test:watch": "NODE_ENV=test karma start --single-run false", | ||
@@ -50,3 +50,3 @@ "guide:server": "styleguidist server", | ||
"eslint-plugin-react": "^7.0.0", | ||
"flow-bin": "^0.46.0", | ||
"flow-bin": "^0.47.0", | ||
"flow-copy-source": "^1.1.0", | ||
@@ -69,3 +69,3 @@ "flow-runtime": "^0.12.0", | ||
"sinon": "^2.1.0", | ||
"webpack": "2.6.0", | ||
"webpack": "2.6.1", | ||
"webpack-async-await": "^1.1.0", | ||
@@ -72,0 +72,0 @@ "webpack-dev-server": "^2.4.2" |
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
94709
7
1047