Socket
Socket
Sign inDemoInstall

react-day-picker

Package Overview
Dependencies
Maintainers
1
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-day-picker - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

dist/DayPicker.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc