Skip to content

Commit 770f63c

Browse files
committed
Add option to highlight disabled dates
1 parent 9f7635e commit 770f63c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Datepicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,12 +641,12 @@ export default {
641641
return disabled
642642
},
643643
/**
644-
* Whether a day is highlighted (only if it is not disabled already)
644+
* Whether a day is highlighted (only if it is not disabled already except when highlighted.includeDisabled is true)
645645
* @param {Date}
646646
* @return {Boolean}
647647
*/
648648
isHighlightedDate (date) {
649-
if (this.isDisabledDate(date)) {
649+
if (!(this.highlighted && this.highlighted.includeDisabled) && this.isDisabledDate(date)) {
650650
return false
651651
}
652652

0 commit comments

Comments
 (0)