najlepsiwebdesigner / foundation-datepicker

Foundation datepicker jQuery plugin
http://foundation-datepicker.peterbeno.com
Apache License 2.0
442 stars 269 forks source link

Setting start date only disables previous months and not previous date for current month #245

Open vinuengico opened 5 years ago

vinuengico commented 5 years ago

I'm selecting a date as start date and when setting the option 'startDate' as the selected date, the end date datepicker disables the dates for the previous months only.

eg: If my start date I select to be 30 Aug, 2019 and set this as my start date for End date datepicker, it disables all the date till July, 2019, however I can still select dates in the month of Aug i.e, from 1 - 29 Aug, 2019 are still active.

Screenshot of code and output attached- image

image