Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled dates removed when using maxPicks #243

Open
DaanBaars opened this issue Jan 12, 2019 · 0 comments
Open

disabled dates removed when using maxPicks #243

DaanBaars opened this issue Jan 12, 2019 · 0 comments

Comments

@DaanBaars
Copy link

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,
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant