@teikametrics/react-infinite-calendar
Advanced tools
Comparing version 2.5.4 to 2.5.7
@@ -83,4 +83,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _date = getDateString(year, month, day); | ||
if (day < 0 || day > getDaysInMonth(_date)) { | ||
var daysInMonth = getDaysInMonth(new Date(year, month, 1)); | ||
if (day < 0 || day > daysInMonth) { | ||
isDisabled = minDate && _date < _minDate || maxDate && _date > _maxDate; | ||
@@ -87,0 +87,0 @@ days[k] = React.createElement(DayComponent, _extends({ |
@@ -109,4 +109,4 @@ 'use strict'; | ||
var _date = (0, _utils.getDateString)(year, month, day); | ||
if (day < 0 || day > (0, _get_days_in_month2.default)(_date)) { | ||
var daysInMonth = (0, _get_days_in_month2.default)(new Date(year, month, 1)); | ||
if (day < 0 || day > daysInMonth) { | ||
isDisabled = minDate && _date < _minDate || maxDate && _date > _maxDate; | ||
@@ -113,0 +113,0 @@ days[k] = _react2.default.createElement(DayComponent, _extends({ |
{ | ||
"name": "@teikametrics/react-infinite-calendar", | ||
"version": "2.5.4", | ||
"version": "2.5.7", | ||
"description": "Infinite scrolling date-picker built with React, with localization, themes, keyboard support, and more.", | ||
@@ -21,2 +21,3 @@ "main": "lib/index.js", | ||
"storybook": "start-storybook -p 9001 -c .storybook", | ||
"storybook:build": "build-storybook -c .storybook -o dist", | ||
"test": "nwb test-react", | ||
@@ -23,0 +24,0 @@ "test:coverage": "nwb test-react --coverage", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1252513
12992