Multiple-Dates-Picker-for-jQuery-UI icon indicating copy to clipboard operation
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard

disabled dates removed when using maxPicks

Open DaanBaars opened this issue 6 years ago • 0 comments

When using maxPick icm with disabled addDisabledDates and you change the picked date more then once the disabled dates are gone.

$(function() { var date3 = new Date(2019,02,01); $( ".hredate" ).multiDatesPicker({ defaultDate: new Date(2019,02,15), dateFormat: 'dd-mm-yy', beforeShowDay: $.datepicker.noWeekends, addDisabledDates: [date3.setDate(1), date3.setDate(2), date3.setDate(12), date3.setDate(14)], maxPicks: 1, }); });

DaanBaars avatar Jan 12 '19 09:01 DaanBaars