react-datetime-range-picker
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -140,2 +140,6 @@ 'use strict'; | ||
if (typeof date === 'string') { | ||
return; | ||
} | ||
var options = { | ||
@@ -159,2 +163,6 @@ start: date | ||
if (typeof date === 'string') { | ||
return; | ||
} | ||
this.setState({ end: date }, function () { | ||
@@ -161,0 +169,0 @@ _this3.props.onChange(_this3.propsToPass()); |
@@ -113,2 +113,6 @@ /* eslint 'react/sort-comp': off, 'react/jsx-no-bind': off */ | ||
onStartDateChange(date) { | ||
if (typeof date === 'string') { | ||
return; | ||
} | ||
const options = { | ||
@@ -129,2 +133,6 @@ start: date, | ||
onEndDateChange(date) { | ||
if (typeof date === 'string') { | ||
return; | ||
} | ||
this.setState({ end: date }, () => { | ||
@@ -131,0 +139,0 @@ this.props.onChange(this.propsToPass()); |
{ | ||
"name": "react-datetime-range-picker", | ||
"description": "Reusable date time range picker", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Samuel Amoah <sa.am@programmer.net>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -7,4 +7,4 @@ # react-datetime-range-picker | ||
```bash | ||
> npm install --save react-datetime-range-picker | ||
```sh | ||
> npm install --save react-datetime react-datetime-range-picker | ||
``` | ||
@@ -11,0 +11,0 @@ |
Sorry, the diff of this file is too big to display
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
184592
5343