react-paginate
Advanced tools
Comparing version 0.1.25 to 0.1.26
{ | ||
"name": "react-paginate", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "A ReactJS component that creates a pagination.", | ||
@@ -5,0 +5,0 @@ "main": "./react_components/index.js", |
@@ -18,2 +18,3 @@ 'use strict'; | ||
initialSelected : React.PropTypes.number, | ||
forceSelected : React.PropTypes.number, | ||
containerClassName : React.PropTypes.string, | ||
@@ -100,2 +101,8 @@ subContainerClassName : React.PropTypes.string, | ||
); | ||
}, | ||
componentWillReceiveProps: function (nextProps) { | ||
if (typeof nextProps.forceSelected !== 'undefined' && nextProps.forceSelected !== this.state.selected) { | ||
this.setState({ selected: nextProps.forceSelected }); | ||
} | ||
} | ||
@@ -102,0 +109,0 @@ }); |
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
243103
1151