Skip to content

Commit bbd9c35

Browse files
committed
fix: Disabled dates function not being called in month-picker mode (fixes #1070)
1 parent 513fe86 commit bbd9c35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/VueDatePicker/utils/date-utils.ts

+3
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ export const isMonthDisabled = (
416416
const key = `${padZero(month + 1)}-${year}`;
417417
return disabledDates.size ? disabledDates.has(key) : false;
418418
}
419+
if (typeof disabledDates === 'function') {
420+
return disabledDates(resetDateTime(set(getDate(), { month, year }), true));
421+
}
419422
return false;
420423
};
421424

0 commit comments

Comments
 (0)