rc-pagination
Advanced tools
Comparing version 3.1.9 to 3.1.10
@@ -74,3 +74,4 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
_this.isValid = function (page) { | ||
return isInteger(page) && page !== _this.state.current; | ||
var total = _this.props.total; | ||
return isInteger(page) && page !== _this.state.current && isInteger(total) && total > 0; | ||
}; | ||
@@ -117,2 +118,8 @@ | ||
_this.handleBlur = function (e) { | ||
var value = _this.getValidValue(e); | ||
_this.handleChange(value); | ||
}; | ||
_this.changePageSize = function (size) { | ||
@@ -441,2 +448,3 @@ var current = _this.state.current; | ||
onChange: this.handleKeyUp, | ||
onBlur: this.handleBlur, | ||
size: "3" | ||
@@ -443,0 +451,0 @@ }), /*#__PURE__*/React.createElement("span", { |
@@ -96,3 +96,4 @@ "use strict"; | ||
_this.isValid = function (page) { | ||
return isInteger(page) && page !== _this.state.current; | ||
var total = _this.props.total; | ||
return isInteger(page) && page !== _this.state.current && isInteger(total) && total > 0; | ||
}; | ||
@@ -139,2 +140,8 @@ | ||
_this.handleBlur = function (e) { | ||
var value = _this.getValidValue(e); | ||
_this.handleChange(value); | ||
}; | ||
_this.changePageSize = function (size) { | ||
@@ -463,2 +470,3 @@ var current = _this.state.current; | ||
onChange: this.handleKeyUp, | ||
onBlur: this.handleBlur, | ||
size: "3" | ||
@@ -465,0 +473,0 @@ }), /*#__PURE__*/_react.default.createElement("span", { |
{ | ||
"name": "rc-pagination", | ||
"version": "3.1.9", | ||
"version": "3.1.10", | ||
"description": "pagination 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
152277
4049