react-timepicker
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -7,3 +7,3 @@ { | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "React timepicker in Android KitKat style", | ||
@@ -10,0 +10,0 @@ |
@@ -64,2 +64,14 @@ 'use strict'; | ||
componentWillReceiveProps: function (nextProps) { | ||
var prevProps = this.props; | ||
var diff = {}; | ||
if (prevProps.mode !== nextProps.mode) diff.mode = nextProps.mode; | ||
if (prevProps.hours !== nextProps.hours) diff.hours = nextProps.hours; | ||
if (prevProps.minutes !== nextProps.minutes) diff.minutes = nextProps.minutes; | ||
this.setState(diff); | ||
}, | ||
render: function () { | ||
@@ -66,0 +78,0 @@ var state = this.state; |
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
39913
525