react-day-picker
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -65,3 +65,3 @@ "use strict"; | ||
var _this = this; | ||
this.setState({ month: this.state.month.add(1, "month") }, function () { | ||
this.setState({ month: this.state.month.clone().add(1, "month") }, function () { | ||
_this.props.onNextMonthTouchTap && _this.props.onNextMonthTouchTap(_this.state.month); | ||
@@ -73,3 +73,3 @@ }); | ||
var _this2 = this; | ||
this.setState({ month: this.state.month.subtract(1, "month") }, function () { | ||
this.setState({ month: this.state.month.clone().subtract(1, "month") }, function () { | ||
_this2.props.onPrevMonthTouchTap && _this2.props.onPrevMonthTouchTap(_this2.state.month); | ||
@@ -76,0 +76,0 @@ }); |
{ | ||
"name": "react-day-picker", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Minimalistic date picker component for React and momentjs.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/DayPicker.js", |
@@ -18,3 +18,3 @@ import React from 'react'; | ||
onDayMouseLeave: React.PropTypes.func, | ||
onNextMonthTouchTap: React.PropTypes.func, | ||
@@ -54,3 +54,3 @@ onPrevMonthTouchTap: React.PropTypes.func | ||
handleNextTouchTap(e) { | ||
this.setState({ month: this.state.month.add(1, 'month') }, () => { | ||
this.setState({ month: this.state.month.clone().add(1, 'month') }, () => { | ||
this.props.onNextMonthTouchTap | ||
@@ -62,3 +62,3 @@ && this.props.onNextMonthTouchTap(this.state.month); | ||
handlePrevTouchTap(e) { | ||
this.setState({ month: this.state.month.subtract(1, 'month') }, () => { | ||
this.setState({ month: this.state.month.clone().subtract(1, 'month') }, () => { | ||
this.props.onPrevMonthTouchTap | ||
@@ -65,0 +65,0 @@ && this.props.onPrevMonthTouchTap(this.state.month); |
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
2283524