Comparing version 1.0.2 to 1.0.3
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
[1.0.3] - 2018-07-09 | ||
* fixed bug: preventing pick a one-day-range when `minDays` option | ||
[1.0.2] - 2018-06-20 | ||
@@ -5,0 +8,0 @@ * Added method `toString` |
@@ -131,3 +131,2 @@ /** | ||
date.isBetween(moment(opts.startDate).subtract(opts.minDays - 1, 'day'), moment(opts.startDate).add(opts.minDays - 1, 'day'), 'day') | ||
&& !date.isSame(opts.startDate, 'day') | ||
) { | ||
@@ -134,0 +133,0 @@ day.className.push('disabled'); |
{ | ||
"name": "lightpick", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Javascript date range picker - lightweight, no jQuery", | ||
@@ -5,0 +5,0 @@ "main": "lightpick.js", |
Sorry, the diff of this file is not supported yet
75010
1043