From 264e8cf0b39b1736e1ac75436d85b9c994b74c51 Mon Sep 17 00:00:00 2001 From: AbdelkaderBah Date: Sat, 2 Feb 2019 17:36:57 +0100 Subject: [PATCH] Fix isDateInRange When the range is selected first day of next month doesn't get .calendar_days_in-range class --- src/js/rangedate-picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/rangedate-picker.js b/src/js/rangedate-picker.js index 67410f7..80da107 100644 --- a/src/js/rangedate-picker.js +++ b/src/js/rangedate-picker.js @@ -321,7 +321,7 @@ export default { }, isDateInRange (r, i, key, startMonthDay, endMonthDate) { const result = this.getDayIndexInMonth(r, i, startMonthDay) - if (result < 2 || result > endMonthDate) return false + if (result < 1 || result > endMonthDate) return false let currDate = null if (key === 'first') {