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
setDatesDisabled not working #2661
Comments
Same, I'm trying to find some information about it, but for now it's just not working. |
I think it has to do with the |
Indeed, if I remove them it works as well for me. But on the documentation, it's written that they are still actual |
Actually, let me rectify that, it seems to work while |
Expected behaviour
Tell us what should happen.
dates on array disabled
Actual behaviour
Tell us what happens instead.
datss on array not disabled
Datepicker version used
ex. 1.6.1.
This is the datepicker init
$('#date').datepicker({
// format: "yyyy/dd/mm",
format: "yyyy-mm-dd",
startDate: "1d",
endDate: "+30d",
// todayBtn: "linked",
language: "id",
orientation: "top right",
keyboardNavigation: false,
autoclose: true,
// daysOfWeekDisabled: disabledWeekDays,
beforeShowDay: function(date) {
var allDates = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
if (dissableddateee2.indexOf(allDates) != -1)
return false;
else
return true;
this is
$('#date').datepicker('setDatesDisabled', ['2022-08-15']); --> array just example
Example code
Jsfiddle example to reproduce the problem.
The text was updated successfully, but these errors were encountered: